pg-embed
Run a Postgresql database locally on Linux, MacOS or Windows as part of another Rust application or test.
Usage
Import following packages:
pg-embed = "0.2"
zip = "0.5.11"
A postgresql instance can be created using
PgEmbed::new(PgSettings, FetchSettings)
Examples
use ;
use fetch;
use ;
let pg_settings = PgSettings;
let fetch_settings = FetchSettings;
let mut pg_emb = new;
/// async block only to show that these methods need to be executed in an async context
async ;
Notes
Reliant on the great work being done by zonkyio/embedded-postgres-binaries in order to fetch precompiled binaries from Maven.