Rindle docs and package mapSkip to main content

DatabaseStorage

Struct DatabaseStorage 

Source
pub struct DatabaseStorage { /* private fields */ }

Implementations§

Source§

impl DatabaseStorage

Source

pub fn new_in_memory() -> Result<DatabaseStorage>

Source

pub fn new_temp_file() -> Result<DatabaseStorage>

Open operator storage over a private, on-disk temporary database — SQLite’s "" filename: a per-connection scratch DB created in the temp directory and deleted automatically when the connection closes. This is the server spill path: operator state can grow past RAM and overflow to disk, but it keeps the durability-free scratch pragmas (journal_mode = OFF, synchronous = OFF, locking_mode = EXCLUSIVE), so there are no journal writes or fsyncs on the hot path — pages only reach disk when the OS page cache evicts them.

Source

pub fn new(conn: Connection) -> Result<DatabaseStorage>

Source

pub fn with_options( conn: Connection, opts: DatabaseStorageOptions, ) -> Result<DatabaseStorage>

Source

pub fn create_storage(&self) -> OpStorage

Allocate one operator’s isolated keyspace (a fresh op_id) over this database. The store gets its own (undrained) error sink — for direct use outside a graph (tests, benchmarks). Inside a graph the [StorageProvider] seam threads the graph’s runtime_error sink in via create_storage_with_sink.

Source

pub fn checkpoint(&self) -> Result<()>

Trait Implementations§

Source§

impl Clone for DatabaseStorage

Source§

fn clone(&self) -> DatabaseStorage

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl StorageProvider for DatabaseStorage

The graph’s StorageFactory vends one OpStorage per stateful operator straight off the database, threading the graph’s runtime_error sink in (WS02.3) so storage failures surface via take_runtime_error at the mutation boundary instead of aborting.

Source§

fn create_storage_with_sink( &self, error_sink: Rc<RefCell<Option<RindleError>>>, ) -> Box<dyn Storage>

Allocate one isolated operator keyspace, parking any backend errors into error_sink (the graph’s runtime_error, WS02.3) so they surface via take_runtime_error instead of aborting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,