pub struct CommandStatementIngest {
pub table_definition_options: Option<TableDefinitionOptions>,
pub table: String,
pub schema: Option<String>,
pub catalog: Option<String>,
pub temporary: bool,
pub transaction_id: Option<Bytes>,
pub options: HashMap<String, String>,
}
Expand description
Represents a bulk ingestion request. Used in the command member of FlightDescriptor for the the RPC call DoPut to cause the server load the contents of the stream’s FlightData into the target destination.
Fields§
§table_definition_options: Option<TableDefinitionOptions>
The behavior for handling the table definition.
table: String
The table to load data into.
schema: Option<String>
The db_schema of the destination table to load data into. If unset, a backend-specific default may be used.
catalog: Option<String>
The catalog of the destination table to load data into. If unset, a backend-specific default may be used.
temporary: bool
Store ingested data in a temporary table. The effect of setting temporary is to place the table in a backend-defined namespace, and to drop the table at the end of the session. The namespacing may make use of a backend-specific schema and/or catalog. The server should return an error if an explicit choice of schema or catalog is incompatible with the server’s namespacing decision.
transaction_id: Option<Bytes>
Perform the ingestion as part of this transaction. If specified, results should not be committed in the event of an error/cancellation.
options: HashMap<String, String>
Backend-specific options.
Implementations§
Source§impl CommandStatementIngest
impl CommandStatementIngest
Sourcepub fn schema(&self) -> &str
pub fn schema(&self) -> &str
Returns the value of schema
, or the default value if schema
is unset.
Sourcepub fn catalog(&self) -> &str
pub fn catalog(&self) -> &str
Returns the value of catalog
, or the default value if catalog
is unset.
Sourcepub fn transaction_id(&self) -> &[u8] ⓘ
pub fn transaction_id(&self) -> &[u8] ⓘ
Returns the value of transaction_id
, or the default value if transaction_id
is unset.
Trait Implementations§
Source§impl Clone for CommandStatementIngest
impl Clone for CommandStatementIngest
Source§fn clone(&self) -> CommandStatementIngest
fn clone(&self) -> CommandStatementIngest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommandStatementIngest
impl Debug for CommandStatementIngest
Source§impl Default for CommandStatementIngest
impl Default for CommandStatementIngest
Source§impl Message for CommandStatementIngest
impl Message for CommandStatementIngest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl PartialEq for CommandStatementIngest
impl PartialEq for CommandStatementIngest
impl StructuralPartialEq for CommandStatementIngest
Auto Trait Implementations§
impl !Freeze for CommandStatementIngest
impl RefUnwindSafe for CommandStatementIngest
impl Send for CommandStatementIngest
impl Sync for CommandStatementIngest
impl Unpin for CommandStatementIngest
impl UnwindSafe for CommandStatementIngest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§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>
T
in a tonic::Request