[−][src]Trait aries_askar::QueryBackend
Query from a generic backend implementation
Required methods
pub fn count<'q>(
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>
) -> BoxFuture<'q, Result<i64, Error>>[src]
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>
) -> BoxFuture<'q, Result<i64, Error>>
pub fn fetch<'q>(
&'q mut self,
kind: EntryKind,
category: &'q str,
name: &'q str,
for_update: bool
) -> BoxFuture<'q, Result<Option<Entry>, Error>>[src]
&'q mut self,
kind: EntryKind,
category: &'q str,
name: &'q str,
for_update: bool
) -> BoxFuture<'q, Result<Option<Entry>, Error>>
pub fn fetch_all<'q>(
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>,
limit: Option<i64>,
for_update: bool
) -> BoxFuture<'q, Result<Vec<Entry>, Error>>[src]
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>,
limit: Option<i64>,
for_update: bool
) -> BoxFuture<'q, Result<Vec<Entry>, Error>>
pub fn remove_all<'q>(
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>
) -> BoxFuture<'q, Result<i64, Error>>[src]
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>
) -> BoxFuture<'q, Result<i64, Error>>
pub fn update<'q>(
&'q mut self,
kind: EntryKind,
operation: EntryOperation,
category: &'q str,
name: &'q str,
value: Option<&'q [u8]>,
tags: Option<&'q [EntryTag]>,
expiry_ms: Option<i64>
) -> BoxFuture<'q, Result<(), Error>>[src]
&'q mut self,
kind: EntryKind,
operation: EntryOperation,
category: &'q str,
name: &'q str,
value: Option<&'q [u8]>,
tags: Option<&'q [EntryTag]>,
expiry_ms: Option<i64>
) -> BoxFuture<'q, Result<(), Error>>
pub fn close(self, commit: bool) -> BoxFuture<'static, Result<(), Error>>[src]
Implementors
impl QueryBackend for AnyQueryBackend[src]
This is supported on crate feature
any only.pub fn count<'q>(
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>
) -> BoxFuture<'q, Result<i64, Error>>[src]
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>
) -> BoxFuture<'q, Result<i64, Error>>
pub fn fetch<'q>(
&'q mut self,
kind: EntryKind,
category: &'q str,
name: &'q str,
for_update: bool
) -> BoxFuture<'q, Result<Option<Entry>, Error>>[src]
&'q mut self,
kind: EntryKind,
category: &'q str,
name: &'q str,
for_update: bool
) -> BoxFuture<'q, Result<Option<Entry>, Error>>
pub fn fetch_all<'q>(
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>,
limit: Option<i64>,
for_update: bool
) -> BoxFuture<'q, Result<Vec<Entry>, Error>>[src]
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>,
limit: Option<i64>,
for_update: bool
) -> BoxFuture<'q, Result<Vec<Entry>, Error>>
pub fn remove_all<'q>(
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>
) -> BoxFuture<'q, Result<i64, Error>>[src]
&'q mut self,
kind: EntryKind,
category: &'q str,
tag_filter: Option<TagFilter>
) -> BoxFuture<'q, Result<i64, Error>>
pub fn update<'q>(
&'q mut self,
kind: EntryKind,
operation: EntryOperation,
category: &'q str,
name: &'q str,
value: Option<&'q [u8]>,
tags: Option<&'q [EntryTag]>,
expiry_ms: Option<i64>
) -> BoxFuture<'q, Result<(), Error>>[src]
&'q mut self,
kind: EntryKind,
operation: EntryOperation,
category: &'q str,
name: &'q str,
value: Option<&'q [u8]>,
tags: Option<&'q [EntryTag]>,
expiry_ms: Option<i64>
) -> BoxFuture<'q, Result<(), Error>>