[−][src]Struct ssb_db::sqlite_ssb_db::SqliteSsbDb
Implementations
impl SqliteSsbDb
[src]
pub fn new<S: AsRef<str>>(database_path: S, offset_log_path: S) -> SqliteSsbDb
[src]
pub fn update_indexes_from_offset_file(&self) -> Result<()>
[src]
Trait Implementations
impl SsbDb for SqliteSsbDb
[src]
fn append_batch<T: AsRef<[u8]>>(
&self,
_: &Multikey,
messages: &[T]
) -> Result<()>
[src]
&self,
_: &Multikey,
messages: &[T]
) -> Result<()>
fn get_entry_by_key<'a>(&'a self, message_key: &Multihash) -> Result<Vec<u8>>
[src]
fn get_entry_by_seq(
&self,
feed_id: &Multikey,
sequence: i32
) -> Result<Option<Vec<u8>>>
[src]
&self,
feed_id: &Multikey,
sequence: i32
) -> Result<Option<Vec<u8>>>
fn get_feed_latest_sequence(&self, feed_id: &Multikey) -> Result<Option<i32>>
[src]
fn get_entries_newer_than_sequence<'a>(
&'a self,
feed_id: &Multikey,
sequence: i32,
limit: Option<i64>,
include_keys: bool,
include_values: bool
) -> Result<Vec<Vec<u8>>>
[src]
&'a self,
feed_id: &Multikey,
sequence: i32,
limit: Option<i64>,
include_keys: bool,
include_values: bool
) -> Result<Vec<Vec<u8>>>
fn rebuild_indexes(&self) -> Result<()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SqliteSsbDb
impl Send for SqliteSsbDb
impl !Sync for SqliteSsbDb
impl Unpin for SqliteSsbDb
impl UnwindSafe for SqliteSsbDb
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,