MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

bank_managment_system/backend.py:6–11  ·  view source on GitHub ↗
(self, db_name="bankmanaging.db")

Source from the content-addressed store, hash-verified

4
5class DatabaseManager:
6 def __init__(self, db_name="bankmanaging.db"):
7 self.db_path = os.path.join(os.path.dirname(__file__), db_name)
8 self.conn = sqlite3.connect(self.db_path, check_same_thread=False)
9 self.cur = self.conn.cursor()
10 self._setup_tables()
11 self.acc_no = self._get_last_acc_no() + 1
12
13 def _setup_tables(self):
14 self.cur.execute("""

Callers

nothing calls this directly

Calls 2

_setup_tablesMethod · 0.95
_get_last_acc_noMethod · 0.95

Tested by

no test coverage detected