Insert records from external database from a given query into the specified target table
Computes remote query result and inserts the result data into a new or existing table.
table_name- Name of the table into which the data will be inserted, in [schema_name.]table_name format, using standard name resolution rules. If the table does not exist, the table will be created using either an existing type_id or the type inferred from the remote query, and the new table name will have to meet standard table naming criteria.remote_query- Query for which result data needs to be imported.modify_columns- Not implemented yet.create_table_options- Options used when creating the target table.
Source
pub async fn insert_records_from_query_with_opts( &self, table_name: String, remote_query: String, modify_columns: HashMap<String, HashMap<String, String>>, create_table_options: HashMap<String, String>, options: InsertRecordsFromQueryRequestOptions, ) -> Result<InsertRecordsFromQueryResponse, KineticaError>
Insert records from external database from a given query into the specified target table
Computes remote query result and inserts the result data into a new or existing table.
table_name- Name of the table into which the data will be inserted, in [schema_name.]table_name format, using standard name resolution rules. If the table does not exist, the table will be created using either an existing type_id or the type inferred from the remote query, and the new table name will have to meet standard table naming criteria.remote_query- Query for which result data needs to be imported.modify_columns- Not implemented yet.create_table_options- Options used when creating the target table.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn insert_records_from_query_raw( &self, request: &InsertRecordsFromQueryRequest, ) -> Result<InsertRecordsFromQueryResponse, KineticaError>
Sends a pre-built InsertRecordsFromQueryRequest to the /insert/records/fromquery endpoint.
Source
pub async fn insert_records_from_query_from_url( &self, url: &str, request: &InsertRecordsFromQueryRequest, ) -> Result<InsertRecordsFromQueryResponse, KineticaError>
Sends a pre-built InsertRecordsFromQueryRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.