Coverage for mindsdb / integrations / handlers / materialize_handler / materialize_handler.py: 0%
9 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.handlers.postgres_handler import Handler as PostgresHandler
4from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE
7class MaterializeHandler(PostgresHandler):
8 """
9 This handler handles connection and execution of the Materialize statements.
10 """
12 name = 'materialize'
14 def __init__(self, name, **kwargs):
15 super().__init__(name, **kwargs)
18connection_args = OrderedDict(
19 host={
20 'type': ARG_TYPE.STR,
21 'description': 'The host name or IP address of the Materialize server/database.',
22 },
23 user={
24 'type': ARG_TYPE.STR,
25 'description': 'The user name used to authenticate with the Materialize server.',
26 },
27 password={
28 'type': ARG_TYPE.STR,
29 'description': 'The password to authenticate the user with the Materialize server.',
30 },
31 port={
32 'type': ARG_TYPE.INT,
33 'description': 'Specify port to connect Materialize server',
34 },
35 database={
36 'type': ARG_TYPE.STR,
37 'description': 'Specify database name to connect Materialize server',
38 },
39)
41connection_args_example = OrderedDict(
42 host='127.0.0.1', port=6875, password='', user='USER', database='materialize'
43)