8 lines
177 B
Python
8 lines
177 B
Python
import sqlite3
|
|
|
|
|
|
def create_conn(db_path: str) -> sqlite3.Connection:
|
|
db_conn = sqlite3.connect(db_path)
|
|
db_conn.execute("PRAGMA foreign_keys = ON")
|
|
|
|
return db_conn
|