Struct askar_storage::backend::postgres::PostgresStoreOptions
source · pub struct PostgresStoreOptions { /* private fields */ }Available on crate feature
postgres only.Expand description
Configuration options for PostgreSQL stores
Implementations§
source§impl PostgresStoreOptions
impl PostgresStoreOptions
sourcepub fn new<'a, O>(options: O) -> Result<Self, Error>where
O: IntoOptions<'a>,
pub fn new<'a, O>(options: O) -> Result<Self, Error>where
O: IntoOptions<'a>,
Initialize PostgresStoreOptions from a generic set of options
sourcepub async fn provision(
self,
method: StoreKeyMethod,
pass_key: PassKey<'_>,
profile: Option<String>,
recreate: bool
) -> Result<PostgresBackend, Error>
pub async fn provision( self, method: StoreKeyMethod, pass_key: PassKey<'_>, profile: Option<String>, recreate: bool ) -> Result<PostgresBackend, Error>
Provision a Postgres store from this set of configuration options
sourcepub async fn open(
self,
method: Option<StoreKeyMethod>,
pass_key: PassKey<'_>,
profile: Option<String>
) -> Result<PostgresBackend, Error>
pub async fn open( self, method: Option<StoreKeyMethod>, pass_key: PassKey<'_>, profile: Option<String> ) -> Result<PostgresBackend, Error>
Open an existing Postgres store from this set of configuration options
Trait Implementations§
source§impl Debug for PostgresStoreOptions
impl Debug for PostgresStoreOptions
source§impl<'a> ManageBackend<'a> for PostgresStoreOptions
impl<'a> ManageBackend<'a> for PostgresStoreOptions
§type Backend = PostgresBackend
type Backend = PostgresBackend
The type of backend being managed
source§fn open_backend(
self,
method: Option<StoreKeyMethod>,
pass_key: PassKey<'_>,
profile: Option<String>
) -> BoxFuture<'a, Result<PostgresBackend, Error>>
fn open_backend( self, method: Option<StoreKeyMethod>, pass_key: PassKey<'_>, profile: Option<String> ) -> BoxFuture<'a, Result<PostgresBackend, Error>>
Open an existing store
source§fn provision_backend(
self,
method: StoreKeyMethod,
pass_key: PassKey<'_>,
profile: Option<String>,
recreate: bool
) -> BoxFuture<'a, Result<PostgresBackend, Error>>
fn provision_backend( self, method: StoreKeyMethod, pass_key: PassKey<'_>, profile: Option<String>, recreate: bool ) -> BoxFuture<'a, Result<PostgresBackend, Error>>
Provision a new store
Auto Trait Implementations§
impl RefUnwindSafe for PostgresStoreOptions
impl Send for PostgresStoreOptions
impl Sync for PostgresStoreOptions
impl Unpin for PostgresStoreOptions
impl UnwindSafe for PostgresStoreOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more