Function sylvia_iot_data::models::new
source ยท pub async fn new(
opts: &ConnOptions
) -> Result<Arc<dyn Model>, Box<dyn StdError>>
Expand description
To create the database model with the specified database implementation.
pub async fn new(
opts: &ConnOptions
) -> Result<Arc<dyn Model>, Box<dyn StdError>>
To create the database model with the specified database implementation.