Coverage for mindsdb / integrations / handlers / surrealdb_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 user={
8 'type': ARG_TYPE.STR,
9 'description': 'The user name used to authenticate with the SurrealDB server.',
10 'required': True,
11 'label': 'User'
12 },
13 password={
14 'type': ARG_TYPE.PWD,
15 'description': 'The password to authenticate the user with the SurrealDB server.',
16 'required': True,
17 'label': 'Password',
18 'secret': True
19 },
20 database={
21 'type': ARG_TYPE.STR,
22 'description': 'The database name to use when connecting with the SurrealDB server.',
23 'required': True,
24 'label': 'Database name'
25 },
26 host={
27 'type': ARG_TYPE.STR,
28 'description': 'The host name or IP address of the SurrealDB server. ',
29 'required': True,
30 'label': 'Host'
31 },
32 port={
33 'type': ARG_TYPE.INT,
34 'description': 'The TCP/IP port of the SurrealDB server. Must be an integer.',
35 'required': True,
36 'label': 'Port'
37 },
38 namespace={
39 'type': ARG_TYPE.STR,
40 'description': 'The namespace name to be connected',
41 'required': True,
42 'label': 'Namespace'
43 }
44)
45connection_args_example = OrderedDict(
46 host='localhost',
47 port=17141,
48 user='admin',
49 password='password',
50 database='test',
51 namespace='test'
52)