sea_orm

Type Alias DbConn

Source
pub type DbConn = DatabaseConnection;
Expand description

The same as a DatabaseConnection

Aliased Type§

enum DbConn {
    SqlxMySqlPoolConnection(SqlxMySqlPoolConnection),
    SqlxPostgresPoolConnection(SqlxPostgresPoolConnection),
    SqlxSqlitePoolConnection(SqlxSqlitePoolConnection),
    MockDatabaseConnection(Arc<MockDatabaseConnection>),
    ProxyDatabaseConnection(Arc<ProxyDatabaseConnection>),
    Disconnected,
}

Variants§

§

SqlxMySqlPoolConnection(SqlxMySqlPoolConnection)

Create a MYSQL database connection and pool

§

SqlxPostgresPoolConnection(SqlxPostgresPoolConnection)

Create a PostgreSQL database connection and pool

§

SqlxSqlitePoolConnection(SqlxSqlitePoolConnection)

Create a SQLite database connection and pool

§

MockDatabaseConnection(Arc<MockDatabaseConnection>)

Create a Mock database connection useful for testing

§

ProxyDatabaseConnection(Arc<ProxyDatabaseConnection>)

Create a Proxy database connection useful for proxying

§

Disconnected

The connection to the database has been severed