MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / _validate_arguments

Method _validate_arguments

middle/data_operation.py:20–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 self._cursor = None
19
20 def _validate_arguments(self) -> bool:
21 result = True
22 if DatabaseSetting().database_name is None:
23 result = False
24 AnsiPrint.print_error(locale.get("databasenull"))
25 self.databases()
26
27 return result
28
29 def _get_cursor(self):
30 db = DbConnector(database=DatabaseSetting().database_name, host=DatabaseSetting().host,

Callers 1

_create_dbCursorMethod · 0.95

Calls 3

databasesMethod · 0.95
DatabaseSettingClass · 0.90
print_errorMethod · 0.45

Tested by

no test coverage detected