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

Method exists

db.py:31–34  ·  view source on GitHub ↗
(self, vname, table, value)

Source from the content-addressed store, hash-verified

29 self.conn.commit()
30
31 def exists(self, vname, table, value):
32 sql = f"SELECT {vname} FROM {table} WHERE {vname} = (?)"
33 self.cur.execute(sql, (value,))
34 return self.cur.fetchone() is not None
35
36 def reset(self):
37 self.close()

Callers 2

programm_settingsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected