Extracted from rust-urus-markk116 (db/wire.rs, db/types.rs). Changes on the way:
- Config (was DbConfig) takes startup options; plan_cache_mode/jit are now the app's choice
- PgConn::query for single statements
- bool parameters and results; FromSql for time::OffsetDateTime (feature time)
replaces the app-specific Timestamp
- a parameter count mismatch is refused before sending and leaves the connection usable
- lib denies unwrap/expect, as smarm does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011iFkM6QYfk9aJxpog3uuTj