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

Method create_database

database/SQliteDB.py:97–104  ·  view source on GitHub ↗
(self, dbname:str)

Source from the content-addressed store, hash-verified

95 return self._select(query, showColumns=True)
96
97 def create_database(self, dbname:str):
98 dbname = dbname.lower()
99 path_db = self._get_db_file()
100 db_file = os.path.join(path_db, dbname+".db")
101 if os.path.exists(db_file):
102 os.remove(db_file)
103 self._get_cursor(dbname)
104 self._conn.close()
105
106
107 def check_exists_table(self, tablename:str) -> bool:

Callers

nothing calls this directly

Calls 3

_get_db_fileMethod · 0.95
_get_cursorMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected