pub struct CreateTableInput {
pub name: String,
pub columns: Vec<CreateTableColumnInput>,
pub if_not_exists: bool,
pub default_ttl_ms: Option<u64>,
pub context_index_fields: Vec<String>,
pub timestamps: bool,
pub partition_by: Option<CreateTablePartitionSpec>,
pub tenant_by: Option<String>,
pub append_only: bool,
}Fields§
§name: String§columns: Vec<CreateTableColumnInput>§if_not_exists: bool§default_ttl_ms: Option<u64>§context_index_fields: Vec<String>§timestamps: bool§partition_by: Option<CreateTablePartitionSpec>Optional PARTITION BY RANGE|LIST|HASH (column) declaration.
Reaches parity with the SQL parser path — callers no longer
need to route partitioned DDL through raw SQL.
tenant_by: Option<String>Optional TENANT BY (column) declaration (auto-install RLS).
append_only: boolReject UPDATE / DELETE at parse time when true.
Corresponds to CREATE TABLE ... APPEND ONLY.
Trait Implementations§
Source§impl Clone for CreateTableInput
impl Clone for CreateTableInput
Source§fn clone(&self) -> CreateTableInput
fn clone(&self) -> CreateTableInput
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 CreateTableInput
impl RefUnwindSafe for CreateTableInput
impl Send for CreateTableInput
impl Sync for CreateTableInput
impl Unpin for CreateTableInput
impl UnsafeUnpin for CreateTableInput
impl UnwindSafe for CreateTableInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request