Squeal is a PostgreSQL binary query layer for Nim. It builds on db_connector/db_postgres and libpq, then adds explicit binary parameters, binary result decoding, and typed row mapping.
Note: it still relies on libpg because a pure Nim setup would require TLS, protocol edge cases, etc.
It's tested with multi-threading and appears to pass thread-sanitizer testing.
Current benchmark from nim testPostgres on a local PostgreSQL instance:
db_connector text Row: ~1.1M rows/sec
squeal binary typed: ~1.7M rows/sec
ratio: ~1.5x
Note: I have not used it on a server yet, just local development. However, it's a fairly straightforward binary mapping and does run against Postgres in local integration tests just fine. Please try it out and let me know if you find issues!