feat: Implement user profile preferences for start page, Git identity, and task drawer auto-open, alongside Git server default branch configuration.
This commit is contained in:
13
test_db.py
Normal file
13
test_db.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import sys
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
|
||||
# Use the same connection string from core/database.py
|
||||
DATABASE_URL = "sqlite:///backend/data/ss-tools.db"
|
||||
engine = create_engine(DATABASE_URL)
|
||||
SessionLocal = sessionmaker(bind=engine)
|
||||
db = SessionLocal()
|
||||
|
||||
result = db.execute("SELECT id, name, pat FROM git_server_configs")
|
||||
for row in result:
|
||||
print(f"ID: {row[0]}, NAME: {row[1]}, PAT: {row[2]}")
|
||||
Reference in New Issue
Block a user