postgresql_embedded 0.20.2

Install and run a PostgreSQL database locally on Linux, MacOS or Windows. PostgreSQL can be bundled with your application, or downloaded on demand.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[cfg(feature = "bundled")]
mod bundle;

use anyhow::Result;

#[tokio::main]
async fn main() -> Result<()> {
    #[cfg(feature = "bundled")]
    bundle::stage_postgresql_archive().await?;
    Ok(())
}