pub struct CoreTables {
pub state: Table<State>,
pub archives: Table<Archives>,
pub archive_block_ids: Table<ArchiveBlockIds>,
pub block_handles: Table<BlockHandles>,
pub key_blocks: Table<KeyBlocks>,
pub full_block_ids: Table<FullBlockIds>,
pub package_entries: Table<PackageEntries>,
pub block_data_entries: Table<BlockDataEntries>,
pub shard_states: Table<ShardStates>,
pub cells: Table<Cells>,
pub temp_cells: Table<TempCells>,
pub block_connections: Table<BlockConnections>,
/* private fields */
}Fields§
§state: Table<State>§archives: Table<Archives>§archive_block_ids: Table<ArchiveBlockIds>§block_handles: Table<BlockHandles>§key_blocks: Table<KeyBlocks>§full_block_ids: Table<FullBlockIds>§package_entries: Table<PackageEntries>§block_data_entries: Table<BlockDataEntries>§shard_states: Table<ShardStates>§cells: Table<Cells>§temp_cells: Table<TempCells>§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 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