[−][src]Crate dhb_heroku_postgres_client
dhb-heroku-postgres-client
Given a DATABASE_URL, it should be dead simple to connect to a Heroku postgres database. This crate makes it dead simple: You pass a DATABASE_URL to the postgres_client function and get a working client back.
The reason I found the work to create this crate necessary is that connecting to Heroku has 2 quirks.
- On the one hand, it requires that we have a secure connection.
- On the other hand, it uses self-verified certificates. So we have to enable Ssl, but turn off verification.
Re-exports
pub use postgres; |
Structs
Client | A synchronous PostgreSQL client. |
Functions
postgres_client | Example: |
postgres_smoke_test |