Initial tansition to SQLAlchemy on the Game Table resource
This commit is contained in:
@@ -33,11 +33,11 @@ CREATE TABLE IF NOT EXISTS "game_keys" (
|
||||
"""
|
||||
|
||||
_user_table_create = """
|
||||
CREATE TABLE IF NOT EXISTS "" (
|
||||
"id": INTEGER NOT NULL,
|
||||
"username": TEXT NOT NULL,
|
||||
"hash": TEXT NOT NULL,
|
||||
PRIMARY KEY ("ID)
|
||||
CREATE TABLE IF NOT EXISTS "users" (
|
||||
"id" INTEGER NOT NULL,
|
||||
"username" TEXT NOT NULL,
|
||||
"hash" TEXT NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
"""
|
||||
|
||||
@@ -55,7 +55,7 @@ class SmartCursor:
|
||||
curosr: Cursor
|
||||
autoClose: bool
|
||||
|
||||
def __init__(self, cursor: Cursor = None, connection: Connectoin = None):
|
||||
def __init__(self, cursor: Cursor = None, connection: Connection = None):
|
||||
self.cursor = cursor
|
||||
self.connection = connection
|
||||
self.autoClose = False
|
||||
|
||||
Reference in New Issue
Block a user