Skip to content

Instantly share code, notes, and snippets.

@tjmaynes
Last active October 12, 2021 18:08
Show Gist options
  • Save tjmaynes/4affc84b49a5bd2c172176a11f25f128 to your computer and use it in GitHub Desktop.
Save tjmaynes/4affc84b49a5bd2c172176a11f25f128 to your computer and use it in GitHub Desktop.
...
use sqlx::{Pool, Postgres, postgres::PgPoolOptions};
...
struct AppState {
db_conn: Pool<Postgres>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment