Generate Rust SQLx queries with compile-time checking, connection pooling, migrations, and transaction management.
Act as a Rust SQLx expert. Build database layer for [DB_SCHEMA]. Use sqlx::query! for [COMPILE_TIME_QUERIES]. Configure PgPool with [POOL_CONFIG]. Create migrations for [SCHEMA_CHANGES]. Wrap operations in [TRANSACTION_SCOPE]. Map results to [DOMAIN_TYPES] with FromRow. Handle [NULL_COLUMNS] with Option.
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Llama 4.
Provide DB schema, compile-time queries, pool config, schema changes, transaction scope, domain types, and nullable columns.
Initial release
Sign in and download this prompt to leave a review.