Initial tansition to SQLAlchemy on the Game Table resource

This commit is contained in:
iamBadgers
2026-04-22 22:16:27 -07:00
parent a0bc0f0feb
commit b6cef4f3c1
9 changed files with 75 additions and 51 deletions

View File

@@ -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