pub struct CreateTableSpec {
pub at: SchemaRef,
pub name: String,
pub table_type: DeltaTableType,
pub location: String,
pub comment: Option<String>,
pub columns: Vec<Column>,
pub properties: BTreeMap<String, String>,
pub table_id: Option<String>,
pub adopt_staging: Option<StagingReservation>,
}Expand description
Specification for persisting a new Delta table row. The handler has already validated the contract and derived the UC-shaped columns + stored properties.
Fields§
§at: SchemaRef§name: String§table_type: DeltaTableType§location: String§comment: Option<String>§columns: Vec<Column>§properties: BTreeMap<String, String>§table_id: Option<String>For MANAGED tables, the adopted staging reservation id; None for EXTERNAL
(the backend assigns the id).
adopt_staging: Option<StagingReservation>For MANAGED tables, the staging reservation being adopted, already resolved and authorized by the handler.
When Some, create_table_row must atomically consume this reservation
and create the table adopting its id (table_id above equals
adopt_staging.table_id) — a transactional backend does both in one
transaction, closing the orphaned-reservation race. None for EXTERNAL
tables, which have no reservation.
Trait Implementations§
Source§impl Clone for CreateTableSpec
impl Clone for CreateTableSpec
Source§fn clone(&self) -> CreateTableSpec
fn clone(&self) -> CreateTableSpec
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 moreAuto Trait Implementations§
impl Freeze for CreateTableSpec
impl RefUnwindSafe for CreateTableSpec
impl Send for CreateTableSpec
impl Sync for CreateTableSpec
impl Unpin for CreateTableSpec
impl UnsafeUnpin for CreateTableSpec
impl UnwindSafe for CreateTableSpec
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