Coverage for mindsdb / integrations / handlers / derby_handler / connection_args.py: 0%

4 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.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE 

4 

5 

6connection_args = OrderedDict( 

7 host={ 

8 'type': ARG_TYPE.STR, 

9 'description': 'The host name or IP address of the Apache Derby server/database.' 

10 }, 

11 port={ 

12 'type': ARG_TYPE.INT, 

13 'description': 'Specify port to connect to Apache Derby.' 

14 }, 

15 database={ 

16 'type': ARG_TYPE.STR, 

17 'description': """ 

18 The database name to use when connecting with the Apache Derby server. 

19 """ 

20 }, 

21 user={ 

22 'type': ARG_TYPE.STR, 

23 'description': 'The user name used to authenticate with the Apache Derby server. If specified this is also treated as the schema.' 

24 }, 

25 password={ 

26 'type': ARG_TYPE.PWD, 

27 'description': 'The password to authenticate the user with the Apache Derby server.', 

28 'secret': True 

29 }, 

30 jdbcClass={ 

31 'type': ARG_TYPE.STR, 

32 'description': 'The jdbc class which should be used to establish the connection, the default value is: org.apache.derby.jdbc.ClientDriver.' 

33 }, 

34 jdbcJarLocation={ 

35 'type': ARG_TYPE.STR, 

36 '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.' 

37 } 

38 

39) 

40 

41 

42connection_args_example = OrderedDict( 

43 host='localhost', 

44 port='1527', 

45 user='test', 

46 password='test', 

47 database="testdb", 

48 jdbcClass='org.apache.derby.jdbc.ClientDriver', 

49 jdbcJarLocation='/opt/homebrew/Cellar/derby/10.16.1.1/libexec/lib/derby.jar,/opt/homebrew/Cellar/derby/10.16.1.1/libexec/lib/derbyclient.jar,/opt/homebrew/Cellar/derby/10.16.1.1/libexec/lib/derbynet.jar,/opt/homebrew/Cellar/derby/10.16.1.1/libexec/lib/derbyoptionaltools.jar,/opt/homebrew/Cellar/derby/10.16.1.1/libexec/lib/derbyrun.jar,/opt/homebrew/Cellar/derby/10.16.1.1/libexec/lib/derbyshared.jar,/opt/homebrew/Cellar/derby/10.16.1.1/libexec/lib/derbytools.jar', 

50)