Crate docbox_database

Crate docbox_database 

Source

Re-exports§

pub use pool::DatabasePoolCache;
pub use pool::DatabasePoolCacheConfig;
pub use pool::DatabasePoolCacheConfigError;
pub use pool::DbConnectErr;
pub use pool::DbSecrets;
pub use sqlx;

Modules§

create
Create
migrations
models
pool
Database Pool
utils

Structs§

PgConnectOptions
SQLx re-exports for other projects Options and flags which can be used to configure a PostgreSQL connection.
Postgres
SQLx re-exports for other projects PostgreSQL database driver.
Transaction
SQLx re-exports for other projects An in-progress database transaction or savepoint.

Constants§

ROOT_DATABASE_NAME
Name of the root database

Traits§

DbExecutor
SQLx re-exports for other projects An alias for Executor<'_, Database = Postgres>.

Type Aliases§

DbErr
Short type alias for a database error
DbPool
Type of the database connection pool
DbResult
Type alias for a result where the error is a DbErr
DbTransaction
Type of a database transaction
PgPool
SQLx re-exports for other projects An alias for Pool, specialized for Postgres.
PgPoolOptions
SQLx re-exports for other projects An alias for PoolOptions, specialized for Postgres.