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

Method check_exists_table

database/SQliteDB.py:107–109  ·  view source on GitHub ↗
(self, tablename:str)

Source from the content-addressed store, hash-verified

105
106
107 def check_exists_table(self, tablename:str) -> bool:
108 table = self._select("SELECT name FROM sqlite_master WHERE type='table' AND name=?", (tablename,))
109 return len(table)>0
110
111 def get_tables_count(self) -> Result:
112 result = Result(headers=['Table', "Rows"])

Callers 1

create_tableMethod · 0.95

Calls 1

_selectMethod · 0.95

Tested by

no test coverage detected