Files
Forge-Engine/db/rows/list_rows.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

9 lines
242 B
Python

from ..connection import connect
def list_rows(slug, definition):
conn = connect(slug)
rows = conn.execute(f"SELECT * FROM {definition['table_name']} ORDER BY id DESC").fetchall()
conn.close()
return [dict(r) for r in rows]