pub fn new(url: &str, db_name: &str) -> Result<Self, QueryError> {
        let params = SqliteParams::try_from(url)?;
        let file_path = params.file_path.to_str().unwrap().to_string();

        let pool = quaint::pool::sqlite(url, db_name)?;

        Ok(Self {
            pool,
            file_path,
            runtime: super::default_runtime(),
        })
    }
/// Create a connection pool to an SQLite database.
///
/// - `url` is the url or file path for the database.
/// - `db_name` is the name the database will be attached to for all the connections in the pool.
Create a connection pool to an SQLite database.
`url` is the url or file path for the database.
`db_name` is the name the database will be attached to for all the connections in the pool.
Create a connection pool to an SQLite database . ` url ` is the url or file path for the database . ` db_name ` is the name the database will be attached to for all the connections in the pool .
pub fn new(url: &str, db_name: &str) -> Result<Self, QueryError> {
        let params = SqliteParams::try_from(url)?;
        let file_path = params.file_path.to_str().unwrap().to_string();
        let pool = quaint::pool::sqlite(url, db_name)?;
        Ok(Self {
            pool,
            file_path,
            runtime: super::default_runtime(),
        })
    }
pub fn new ( url : & str , db_name : & str ) -> Result < Self , QueryError > { let params = SqliteParams :: try_from ( url ) ? ; let file_path = params . file_path . to_str ( ) . unwrap ( ) . to_string ( ) ; let pool = quaint :: pool :: sqlite ( url , db_name ) ? ; Ok ( Self { pool , file_path , runtime : super :: default_runtime ( ) , } ) }
Create a connection pool to an SQLite database.
Create a connection pool to an SQLite database .
url
&str
db_name
&str
url
&str
db_name
&str