pub fn establish_connection() -> ConnectionResult<Self> {
        let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set");
        let connection = RecoverableConnection::establish(&database_url)?; //.expect(&format!("Error connecting to {}", database_url));
        Ok(Self {
            conn: ConnectionHolder::Direct(connection),
        })
    }
/// Creates a `StorageProcessor` using an unique sole connection to the database.
Creates a `StorageProcessor` using an unique sole connection to the database.
Creates a ` StorageProcessor ` using an unique sole connection to the database .
pub fn establish_connection() -> ConnectionResult<Self> {
        let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set");
        let connection = RecoverableConnection::establish(&database_url)?; //.expect(&format!("Error connecting to {}", database_url));
        Ok(Self {
            conn: ConnectionHolder::Direct(connection),
        })
    }
pub fn establish_connection ( ) -> ConnectionResult < Self > { let database_url = env :: var ( " " ) . expect ( " " ) ; let connection = RecoverableConnection :: establish ( & database_url ) ? ; //.expect(&format!("Error connecting to {}", database_url)); Ok ( Self { conn : ConnectionHolder :: Direct ( connection ) , } ) }
Creates a `StorageProcessor` using an unique sole connection to the database.
Creates a ` StorageProcessor ` using an unique sole connection to the database .