fn store_factory(environment: &ModelEnvironment) -> Result<Box<dyn Store>> {
        if environment.uri == "{memory}" {
            Ok(Box::new(MemoryStore::connect(environment.uri.clone())?))
        } else {
            Ok(Box::new(EmbeddedStore::connect(environment.uri.clone())?))
        }
    }
/// Selects the internal store based on the URI set.
Selects the internal store based on the URI set.
Selects the internal store based on the URI set .
fn store_factory(environment: &ModelEnvironment) -> Result<Box<dyn Store>> {
        if environment.uri == "{memory}" {
            Ok(Box::new(MemoryStore::connect(environment.uri.clone())?))
        } else {
            Ok(Box::new(EmbeddedStore::connect(environment.uri.clone())?))
        }
    }
fn store_factory ( environment : & ModelEnvironment ) -> Result < Box < dyn Store > > { if environment . uri == " " { Ok ( Box :: new ( MemoryStore :: connect ( environment . uri . clone ( ) ) ? ) ) } else { Ok ( Box :: new ( EmbeddedStore :: connect ( environment . uri . clone ( ) ) ? ) ) } }
Selects the internal store based on the URI set.
Selects the internal store based on the URI set .
environment
&ModelEnvironment
environment
&ModelEnvironment