Coverage for mindsdb / integrations / handlers / pgvector_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 PostgreSQL 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 PostgreSQL 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 PostgreSQL server.",
23 "required": True,
24 "label": "Database",
25 },
26 host={
27 "type": ARG_TYPE.STR,
28 "description": "The host name or IP address of the PostgreSQL server. NOTE: use '127.0.0.1' instead of 'localhost' to connect to local server.",
29 "required": True,
30 "label": "Host",
31 },
32 port={
33 "type": ARG_TYPE.INT,
34 "description": "The TCP/IP port of the PostgreSQL server. Must be an integer.",
35 "required": True,
36 "label": "Port",
37 },
38 schema={
39 "type": ARG_TYPE.STR,
40 "description": "The schema in which objects are searched first.",
41 "required": False,
42 "label": "Schema",
43 },
44 sslmode={
45 "type": ARG_TYPE.STR,
46 "description": "sslmode that will be used for connection.",
47 "required": False,
48 "label": "sslmode",
49 },
50)
52connection_args_example = OrderedDict(
53 host="127.0.0.1", port=5432, user="root", password="password", database="database"
54)