MCPcopy Create free account
hub / github.com/DIMFLIX/Spectrum-Security / create_tables

Method create_tables

db.py:26–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 self.cur = self.conn.cursor()
25
26 def create_tables(self):
27 self.cur.execute('CREATE TABLE IF NOT EXISTS programm_settings(setting TEXT NOT NULL, status BOOLEAN NOT NULL)')
28 self.cur.execute('CREATE TABLE IF NOT EXISTS virus_storage(date TEXT NOT NULL, path TEXT NOT NULL PRIMARY KEY)')
29 self.conn.commit()
30
31 def exists(self, vname, table, value):
32 sql = f"SELECT {vname} FROM {table} WHERE {vname} = (?)"

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected