Files
codex-security/examples/security-workflow-sample/app/reports.py
Neha RungtaandNeha Rungta 462bad3da3 feat(examples): add synthetic security workflow benchmarks (#2618)
* feat(examples): add synthetic security workflow benchmark

* feat(examples): add deployed VPC reachability benchmark

---------

Co-authored-by: Neha Rungta <rungta@amazon.com>
2026-11-12 21:49:33 -08:00

12 lines
341 B
Python

"""Order reports for the signed-in account."""
def orders_by_region(database, tenant_id, region):
query = f"""
SELECT id, tenant_id, region, description, amount_cents
FROM orders
WHERE tenant_id = ? AND region = '{region}'
ORDER BY id
"""
return database.execute(query, (tenant_id,)).fetchall()