RcGcDb/src/database.py

7 lines
199 B
Python

import sqlite3
from src.config import settings
db_connection = sqlite3.connect(settings.get("database_path", 'rcgcdb.db'))
db_connection.row_factory = sqlite3.Row
db_cursor = db_connection.cursor()