Struct askar_storage::backend::postgres::PostgresBackend
source · pub struct PostgresBackend { /* private fields */ }Available on crate feature
postgres only.Expand description
A PostgreSQL database store
Trait Implementations§
source§impl Backend for PostgresBackend
impl Backend for PostgresBackend
source§fn create_profile(
&self,
name: Option<String>
) -> BoxFuture<'_, Result<String, Error>>
fn create_profile( &self, name: Option<String> ) -> BoxFuture<'_, Result<String, Error>>
Create a new profile
source§fn get_active_profile(&self) -> String
fn get_active_profile(&self) -> String
Get the name of the active profile
source§fn get_default_profile(&self) -> BoxFuture<'_, Result<String, Error>>
fn get_default_profile(&self) -> BoxFuture<'_, Result<String, Error>>
Get the name of the default profile
source§fn set_default_profile(
&self,
profile: String
) -> BoxFuture<'_, Result<(), Error>>
fn set_default_profile( &self, profile: String ) -> BoxFuture<'_, Result<(), Error>>
Set the the default profile
source§fn list_profiles(&self) -> BoxFuture<'_, Result<Vec<String>, Error>>
fn list_profiles(&self) -> BoxFuture<'_, Result<Vec<String>, Error>>
Get the details of all store profiles
source§fn remove_profile(&self, name: String) -> BoxFuture<'_, Result<bool, Error>>
fn remove_profile(&self, name: String) -> BoxFuture<'_, Result<bool, Error>>
Remove an existing profile
source§fn rekey(
&mut self,
method: StoreKeyMethod,
pass_key: PassKey<'_>
) -> BoxFuture<'_, Result<(), Error>>
fn rekey( &mut self, method: StoreKeyMethod, pass_key: PassKey<'_> ) -> BoxFuture<'_, Result<(), Error>>
Replace the wrapping key of the store
source§fn scan(
&self,
profile: Option<String>,
kind: Option<EntryKind>,
category: Option<String>,
tag_filter: Option<TagFilter>,
offset: Option<i64>,
limit: Option<i64>
) -> BoxFuture<'_, Result<Scan<'static, Entry>, Error>>
fn scan( &self, profile: Option<String>, kind: Option<EntryKind>, category: Option<String>, tag_filter: Option<TagFilter>, offset: Option<i64>, limit: Option<i64> ) -> BoxFuture<'_, Result<Scan<'static, Entry>, Error>>
Create a
Scan against the storeAuto Trait Implementations§
impl !RefUnwindSafe for PostgresBackend
impl Send for PostgresBackend
impl Sync for PostgresBackend
impl Unpin for PostgresBackend
impl !UnwindSafe for PostgresBackend
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