Files
Forge-Engine/db/rows/get_row.py
T
williamandwilliam 3f4ebc4527
Build and deploy / build-and-push (push) Successful in 17s
Build and deploy / deploy (push) Successful in 10s
first commit
2026-08-21 16:23:49 +02:00

11 lines
271 B
Python

from ..connection import connect
def get_row(slug, definition, row_id):
conn = connect(slug)
row = conn.execute(
f"SELECT * FROM {definition['table_name']} WHERE id = ?", (row_id,)
).fetchone()
conn.close()
return dict(row) if row else None