Skip to main content

Module pg_access

Module pg_access 

Source
Expand description

File-system access layer for cached PostgreSQL binaries and database clusters.

PgAccess encapsulates all paths used by pg-embed (cache dir, database dir, executable paths, password file) and provides the operations that act on those paths: downloading, unpacking, writing the password file, and cleaning up.

The module-level static ACQUIRED_PG_BINS prevents concurrent downloads of the same binaries when multiple crate::postgres::PgEmbed instances start simultaneously.

Structsยง

PgAccess
Manages all file-system paths and I/O operations for a single pg-embed instance.