pub trait DatabaseProviderROFactory {
type Provider;
// Required method
fn database_provider_ro(&self) -> ProviderResult<Self::Provider>;
}Available on crate feature
db-api only.Expand description
A trait which can be used to describe any factory-like type which returns a read-only provider.
Required Associated Types§
Required Methods§
Sourcefn database_provider_ro(&self) -> ProviderResult<Self::Provider>
fn database_provider_ro(&self) -> ProviderResult<Self::Provider>
Creates and returns a Provider.