sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.39k stars 429 forks source link

Support scalar queries. #1126

Open rikvdkleij opened 3 months ago

rikvdkleij commented 3 months ago

This PR adds support for querying scalars with the following functions:

It removes the need to always handle a row.

Also in the process of migrating from sqlx to tokio-postgres it's convenient to have support for scalar query functions.

Questions and/or suggestions are welcome!