sfackler / rust-postgres

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

Support scalar queries. #1126

Open rikvdkleij opened 7 months ago

rikvdkleij commented 7 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!