Skip to main content

PostgresKeepsakeRepository

Type Alias PostgresKeepsakeRepository 

Source
pub type PostgresKeepsakeRepository<C = NoopRelationCache> = SqlxKeepsakeRepository<PostgresBackend, C>;
Expand description

Postgres-backed keepsake repository.

Aliased Type§

pub struct PostgresKeepsakeRepository<C = NoopRelationCache> { /* private fields */ }

Implementations§

Source§

impl PostgresKeepsakeRepository<NoopRelationCache>

Source

pub const fn new(pool: PgPool) -> Self

Creates a repository from a Postgres pool.

Source§

impl<C> PostgresKeepsakeRepository<C>
where C: RelationCache,

Source

pub async fn migrate(&self) -> RepositoryResult<()>

Runs embedded migrations.