MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / from_sqlx_sqlite_pool

Method from_sqlx_sqlite_pool

src/driver/sqlx_sqlite.rs:120–125  ·  view source on GitHub ↗

Instantiate a sqlx pool connection to a [DatabaseConnection]

(pool: SqlitePool)

Source from the content-addressed store, hash-verified

118impl SqlxSqliteConnector {
119 /// Instantiate a sqlx pool connection to a [DatabaseConnection]
120 pub fn from_sqlx_sqlite_pool(pool: SqlitePool) -> DatabaseConnection {
121 DatabaseConnection::SqlxSqlitePoolConnection(SqlxSqlitePoolConnection {
122 pool,
123 metric_callback: None,
124 })
125 }
126}
127
128impl SqlxSqlitePoolConnection {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected