Skip to main content

SpgPool

Type Alias SpgPool 

Source
pub type SpgPool = Pool<Spg>;
Expand description

Drop-in replacement for sqlx::PgPool over an in-process SPG. Same Pool<Spg> shape — every sqlx-core API generic over Pool<DB> works against this alias.

Aliased Type§

pub struct SpgPool(/* private fields */);

Trait Implementations§

Source§

impl SpgPoolExt for SpgPool

Source§

fn connect_in_memory() -> BoxFuture<'static, Result<SpgPool, Error>>

In-memory pool — single connection, no persistence.
Source§

fn connect_path(path: PathBuf) -> BoxFuture<'static, Result<SpgPool, Error>>

File-backed pool at path.