Coverage for mindsdb / integrations / handlers / nuo_jdbc_handler / connection_args.py: 0%
4 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
1from collections import OrderedDict
3from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE
6connection_args = OrderedDict(
7 host={
8 'type': ARG_TYPE.STR,
9 'description': 'The host name or IP address of the NuoDB AP or TE. If is_direct is set to true then provide the TE IP else provide the AP IP.'
10 },
11 port={
12 'type': ARG_TYPE.INT,
13 'description': 'Specify port to connect to NuoDB. If is_direct is set to true then provide the TE port else provide the AP port.'
14 },
15 database={
16 'type': ARG_TYPE.STR,
17 'description': """
18 The database name to use when connecting with the NuoDB.
19 """
20 },
21 schema={
22 'type': ARG_TYPE.STR,
23 'description': """
24 The schema name to use when connecting with the NuoDB.
25 """
26 },
27 user={
28 'type': ARG_TYPE.STR,
29 'description': 'The username to authenticate with the NuoDB server.'
30 },
31 password={
32 'type': ARG_TYPE.PWD,
33 'description': 'The password to authenticate the user with the NuoDB server.',
34 'secret': True
35 },
36 is_direct={
37 'type': ARG_TYPE.STR,
38 'description': 'This argument indicates whether a direct connection to the TE is to be attempted.'
39 },
40 jar_location={
41 'type': ARG_TYPE.STR,
42 'description': 'The location of the jar files which contain the JDBC class. This need not be specified if the required classes are already added to the CLASSPATH variable.'
43 },
44 driver_args={
45 'type': ARG_TYPE.STR,
46 'description': """
47 The extra arguments which can be specified to the driver.
48 Specify this in the format: "arg1=value1,arg2=value2.
49 More information on the supported paramters can be found at: https://doc.nuodb.com/nuodb/latest/deployment-models/physical-or-vmware-environments-with-nuodb-admin/reference-information/connection-properties/'
50 """
51 }
52)
55connection_args_example = OrderedDict(
56 host="localhost",
57 port="48006",
58 database="test",
59 schema="hockey",
60 user="dba",
61 password="goalie",
62 jar_location="/Users/kavelbaruah/Desktop/nuodb-jdbc-24.0.0.jar",
63 is_direct="true",
64 driver_args="schema=hockey,clientInfo=info"
65)