Module exposing: Config
// Source: https://github.com/superfly/corrosion | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use std::{convert::Infallible, path::PathBuf, time::Duration};
use deadpool::managed::{QueueMode, Timeouts};
use rusqlite::OpenFlags;
use crate::{
noop_transform, CreatePoolError, Manager, Pool, PoolBuilder, PoolConfig, Runtime, RusqlitePool,
SqliteConn,
};
/// Configuration object.
#[derive(Clone, Debug, Default)]
pub struct Config {
/// Path to SQLite database file.
pub path: PathBuf,
/// Open flags for SQLite
pub open_flags: OpenFlags,
/// [`Pool`] configuration.
pub pool: PoolConfig,
}
impl Config {
/// Create a new [`Config`] with the give
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key