pub fn connect(environment: ModelEnvironment) -> Result<Self> {
        let store: Mutex<Box<dyn Store>> =
            DataModel::setup_schema(Self::store_factory(&environment)?)?;

        Ok(Self { collections: Mutex::new(HashMap::new()), environment, store })
    }
/// Connects to the internal data store and setups everything.
Connects to the internal data store and setups everything.
Connects to the internal data store and setups everything .
pub fn connect(environment: ModelEnvironment) -> Result<Self> {
        let store: Mutex<Box<dyn Store>> =
            DataModel::setup_schema(Self::store_factory(&environment)?)?;
        Ok(Self { collections: Mutex::new(HashMap::new()), environment, store })
    }
pub fn connect ( environment : ModelEnvironment ) -> Result < Self > { let store : Mutex < Box < dyn Store > > = DataModel :: setup_schema ( Self :: store_factory ( & environment ) ? ) ? ; Ok ( Self { collections : Mutex :: new ( HashMap :: new ( ) ) , environment , store } ) }
Connects to the internal data store and setups everything.
Connects to the internal data store and setups everything .
environment
ModelEnvironment
environment
ModelEnvironment