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

Method __init__

db.py:4–9  ·  view source on GitHub ↗
(self, db_fp='data/data.db')

Source from the content-addressed store, hash-verified

2
3class DB(object):
4 def __init__(self, db_fp='data/data.db'):
5 self.db_fp = db_fp
6 self.tables = ["virus_md5_hashes", "processed_virusshare_urls", "programm_settings", "virus_storage"]
7 self.connect()
8 self.create_tables()
9 self.programm_settings()
10
11 def __enter__(self):
12 return self

Callers

nothing calls this directly

Calls 3

connectMethod · 0.95
create_tablesMethod · 0.95
programm_settingsMethod · 0.95

Tested by

no test coverage detected