Skip to main content

SqliteRegistryAssembly

Struct SqliteRegistryAssembly 

Source
pub struct SqliteRegistryAssembly { /* private fields */ }
Expand description

The sqlite twin assembly — the pieces one adapter constructor wires over the default engine assembly (single-host shape, substrate.md §assembly: alkstore-sqlite + the co-tenant twin on one file):

The wave-8 single composition entry unifies construction; this is the per-piece constructor (the recorded interpretation, flagged for the gate).

Implementations§

Source§

impl SqliteRegistryAssembly

Source

pub async fn open(path: impl AsRef<Path>) -> Result<Self, OpenError>

The adapter constructor: open the co-tenant connection at path (migrations at construction, loud — a half-migrated store refuses service; :memory: confers no co-tenancy and is rejected before the engine opens), open the alkstore-sqlite engine at the same path, load the provider’s initial snapshot, and wire the reactive composition. Every failure is OpenError.

Source

pub fn store(&self) -> &Arc<dyn Store> ⓘ

The opened alkstore engine handle (the reactive halves’ substrate; the wave-7 maintenance chain rides the same).

Source

pub fn write(&self) -> &Arc<dyn RegistryWrite> ⓘ

The announced write side — the pair with the post-commit announce wired (the write surface the composition’s callers use).

Source

pub fn durable(&self) -> &Arc<SqliteRegistry> ⓘ

The bare twin (announce-free — the transactional legs’ probe surface).

Source

pub fn provider(&self) -> &Arc<CachedRegistryProvider> ⓘ

The cached read provider (the hot read).

Source

pub fn reactor(&self) -> &Arc<Reactor> ⓘ

The reactor (the wake runner / stream consumer / reconcile sweep run through it).

Source

pub fn refs(&self) -> &Arc<VersionedRefTable<SqliteRefTable>> ⓘ

The refs row CAS over the same co-tenant handle — the write-counter-wrapped composition refs (VersionedRefTable): the CAS semantics are unchanged (verbatim delegation), every CAS call bumps the shared counter the liveness source’s arbitration consult reads (crate::liveness — the composition’s invalidation half). Pushes route through this impl.

Source

pub fn refs_version(&self) -> &Arc<AtomicU64> ⓘ

The refs writes’ shared counter — the same handle Self::refs bumps and the crate::liveness::RefClosure source consults; hand it to the closure’s constructor.

Source

pub fn backend(&self) -> &Arc<RegistryBackend> ⓘ

The core-traits binding (the engine-twin binding announced and write-through wired).

Source

pub fn lfs_rows(&self) -> &Arc<VersionedLfsRows<SqliteLfsRows>> ⓘ

The LFS pointer-lifecycle row CAS over the same co-tenant handle — the write-counter-wrapped rows (crate::lfs::VersionedLfsRows; the refs twins’ wrap posture, the per-piece parity posture the per-piece-path embedder composes): the row semantics are unchanged (verbatim delegation), every assert bumps the shared counter the LFS liveness source’s arbitration consult reads (crate::liveness — the composition’s invalidation half). The record-removal leg takes a removed repo’s rows with the record transactionally (the twins’ unconditional in-SQL copy).

Source

pub fn lfs_version(&self) -> &Arc<AtomicU64> ⓘ

The LFS rows’ asserts’ shared counter — the same handle Self::lfs_rows bumps and the crate::liveness::LfsMedia source consults; hand it to the media source’s constructor.

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more