Initial commit
This commit is contained in:
10
database/db.py
Normal file
10
database/db.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import sqlite3
|
||||
|
||||
from config import DB_PATH
|
||||
|
||||
|
||||
def get_connection():
|
||||
return sqlite3.connect(
|
||||
DB_PATH,
|
||||
check_same_thread=False
|
||||
)
|
||||
Reference in New Issue
Block a user