pub struct InsertQuery {
pub table: String,
pub entity_type: InsertEntityType,
pub columns: Vec<String>,
pub value_exprs: Vec<Vec<Expr>>,
pub values: Vec<Vec<Value>>,
pub returning: Option<Vec<ReturningItem>>,
pub ttl_ms: Option<u64>,
pub expires_at_ms: Option<u64>,
pub with_metadata: Vec<(String, Value)>,
pub auto_embed: Option<AutoEmbedConfig>,
pub suppress_events: bool,
}Expand description
INSERT INTO table (columns) VALUES (row1), (row2), … [WITH TTL duration] [WITH METADATA (k=v)]
Fields§
§table: StringTarget table name
entity_type: InsertEntityTypeEntity type qualifier
columns: Vec<String>Column names
value_exprs: Vec<Vec<Expr>>Canonical SQL rows of expressions.
values: Vec<Vec<Value>>Rows of values (each inner Vec is one row)
returning: Option<Vec<ReturningItem>>Optional RETURNING clause items.
ttl_ms: Option<u64>Optional TTL in milliseconds (from WITH TTL clause)
expires_at_ms: Option<u64>Optional absolute expiration (from WITH EXPIRES AT clause)
with_metadata: Vec<(String, Value)>Optional metadata key-value pairs (from WITH METADATA clause)
auto_embed: Option<AutoEmbedConfig>Auto-embed fields on insert (from WITH AUTO EMBED clause)
suppress_events: boolSkip event subscription emission for this statement (SUPPRESS EVENTS).
Trait Implementations§
Source§impl Clone for InsertQuery
impl Clone for InsertQuery
Source§fn clone(&self) -> InsertQuery
fn clone(&self) -> InsertQuery
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 InsertQuery
impl RefUnwindSafe for InsertQuery
impl Send for InsertQuery
impl Sync for InsertQuery
impl Unpin for InsertQuery
impl UnsafeUnpin for InsertQuery
impl UnwindSafe for InsertQuery
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