What it does
A Cursor rules file for working with PostgreSQL. It sets conventions for schemas, parameterized queries, indexing, versioned migrations and explicit transactions, and lists things to avoid such as SELECT *, string-interpolated SQL and schema changes during peak traffic.
Use cases
- 01Design a table with timestamps and foreign keys
- 02Write parameterized queries with explicit columns
- 03Plan a safe migration with a backfill step