pub struct CustomTableEntry {
pub name: String,
pub columns: Vec<String>,
pub first_row_page: u32,
pub last_row_page: u32,
pub num_rows: u32,
}Expand description
A user-defined table entry stored in the catalog.
Row data is not stored inline — it lives in its own page chain
(see crate::storage::Storage::write_table_rows) so that appending
rows only requires writing the new pages plus this small fixed-size
entry, instead of rewriting every previously-inserted row.
Fields§
§name: String§columns: Vec<String>§first_row_page: u32First page of the row chain. 0 = no rows persisted yet.
last_row_page: u32Last page of the row chain — new rows are appended after this page.
num_rows: u32Trait Implementations§
Source§impl Clone for CustomTableEntry
impl Clone for CustomTableEntry
Source§fn clone(&self) -> CustomTableEntry
fn clone(&self) -> CustomTableEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomTableEntry
impl Debug for CustomTableEntry
Source§impl PartialEq for CustomTableEntry
impl PartialEq for CustomTableEntry
impl StructuralPartialEq for CustomTableEntry
Auto Trait Implementations§
impl Freeze for CustomTableEntry
impl RefUnwindSafe for CustomTableEntry
impl Send for CustomTableEntry
impl Sync for CustomTableEntry
impl Unpin for CustomTableEntry
impl UnsafeUnpin for CustomTableEntry
impl UnwindSafe for CustomTableEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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