forked from CodeCow/NGCBot
12 lines
200 B
Python
12 lines
200 B
Python
import sqlite3
|
|
|
|
|
|
def openDb(dbPath, ):
|
|
conn = sqlite3.connect(database=dbPath, )
|
|
cursor = conn.cursor()
|
|
return conn, cursor
|
|
|
|
|
|
def closeDb(conn, cursor):
|
|
cursor.close()
|
|
conn.close() |