pub struct CoreTables {
pub state: Table<State>,
pub archive_block_ids: Table<ArchiveBlockIds>,
pub archive_events: Table<ArchiveEvents>,
pub block_handles: Table<BlockHandles>,
pub key_blocks: Table<KeyBlocks>,
pub full_block_ids: Table<FullBlockIds>,
pub block_connections: Table<BlockConnections>,
}Fields§
§state: Table<State>§archive_block_ids: Table<ArchiveBlockIds>§archive_events: Table<ArchiveEvents>§block_handles: Table<BlockHandles>§key_blocks: Table<KeyBlocks>§full_block_ids: Table<FullBlockIds>§block_connections: Table<BlockConnections>Trait Implementations§
Source§impl NamedTables for CoreTables
impl NamedTables for CoreTables
Source§impl Tables for CoreTables
impl Tables for CoreTables
Source§type Context = TableContext
type Context = TableContext
Table creation context.
Source§fn define(
builder: WeeDbRawBuilder<Self::Context>,
) -> WeeDbRawBuilder<Self::Context>
fn define( builder: WeeDbRawBuilder<Self::Context>, ) -> WeeDbRawBuilder<Self::Context>
Defines column families for the database.
Source§fn instantiate(db: &WeeDbRaw) -> Self
fn instantiate(db: &WeeDbRaw) -> Self
Instantiates tables from the database.
Source§fn column_families(&self) -> impl IntoIterator<Item = ColumnFamilyDescr<'_>>
fn column_families(&self) -> impl IntoIterator<Item = ColumnFamilyDescr<'_>>
Returns a list of column families.
Source§impl WithMigrations for CoreTables
impl WithMigrations for CoreTables
const VERSION: Semver
type VersionProvider = StateVersionProvider<State>
fn new_version_provider() -> Self::VersionProvider
fn register_migrations( _migrations: &mut Migrations<Self::VersionProvider, Self>, _cancelled: CancellationFlag, ) -> Result<(), MigrationError>
Auto Trait Implementations§
impl Freeze for CoreTables
impl RefUnwindSafe for CoreTables
impl Send for CoreTables
impl Sync for CoreTables
impl Unpin for CoreTables
impl UnsafeUnpin for CoreTables
impl UnwindSafe for CoreTables
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more