pub struct PostgresDatabase { /* private fields */ }
Trait Implementations§
source§impl Database for PostgresDatabase
impl Database for PostgresDatabase
source§fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client_id: &'life1 [u8],
kvs: &'life2 Vec<(String, Value)>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, client_id: &'life1 [u8], kvs: &'life2 Vec<(String, Value)> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Atomically put a vector of key-values into the database. Read more
source§fn get_with_prefix<'life0, 'life1, 'async_trait>(
&'life0 self,
client_id: &'life1 [u8],
key_prefix: String
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Value)>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_with_prefix<'life0, 'life1, 'async_trait>( &'life0 self, client_id: &'life1 [u8], key_prefix: String ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Value)>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Get all keys matching a prefix from the database
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresDatabase
impl Send for PostgresDatabase
impl Sync for PostgresDatabase
impl Unpin for PostgresDatabase
impl !UnwindSafe for PostgresDatabase
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request