Adding sqlx_postgres library as a dependency

Run this command in a terminal, in your project's directory:

cargo add sqlx-postgres

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

sqlx-postgres = "0.9.0-alpha.1"

The sqlx_postgres library will be automatically available globally. Read the sqlx_postgres library documentation.

Back to the crate overview.