Skip to main content

pool

Function pool 

Source
pub fn pool() -> SqlitePool
Expand description

Return the default connection pool, typed as a SqlitePool.

This is the function every plugin and the queryset call. The internal storage is a DbPool; this unwraps to the SqlitePool variant or panics with a Phase-2 hint, matching the documented Phase 1 contract.

§Panics

Panics if App::build() hasn’t run or the registered default pool is Postgres.