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

1from collections import OrderedDict 

2 

3from mindsdb.integrations.handlers.postgres_handler import Handler as PostgresHandler 

4from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE 

5 

6 

7class MaterializeHandler(PostgresHandler): 

8 """ 

9 This handler handles connection and execution of the Materialize statements. 

10 """ 

11 

12 name = 'materialize' 

13 

14 def __init__(self, name, **kwargs): 

15 super().__init__(name, **kwargs) 

16 

17 

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) 

40 

41connection_args_example = OrderedDict( 

42 host='127.0.0.1', port=6875, password='', user='USER', database='materialize' 

43)