pg-embed 1.0.0

Run a Postgresql database locally on Linux, MacOS or Windows as part of another Rust application or test.
Documentation
1
2
3
4
5
6
7
8
use std::cell::Cell;

/// Synchronous pg_ctl command type.
///
/// `Cell` provides interior mutability so the synchronous `pg_ctl stop` command
/// can be configured and spawned inside the `Drop` implementation without requiring
/// a mutable reference to the surrounding struct.
pub type PgCommandSync = Box<Cell<std::process::Command>>;