append_records
- append_records(
table_name: string,
source_table_name: string,
field_map: Record<string, string>,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<AppendRecordsResponse>Parameters
- table_name: string
The table name for the records to be appended, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table.
- source_table_name: string
The source table name to get records from, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table name.
- field_map: Record<string, string>
Contains the mapping of column names from the target table (specified by
table_name) as the keys, and corresponding column names or expressions (e.g., ‘col_name+1’) from the source table (specified bysource_table_name). Must be existing column names in source table and target table, and their types must be matched. For details on using expressions, see Expressions. Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<AppendRecordsResponse>
Promise<Types.AppendRecordsResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:4972
- table_name: string
append_records_request
- append_records_request(
request: AppendRecordsRequest,
callback?: GPUdbCallback,
): Promise<AppendRecordsResponse>Append (or insert) all records from a source table (specified by
source_table_name) to a particular target table (specified bytable_name). The field map (specified byfield_map) holds the user specified map of target table column names with their mapped source column names.Parameters
- request: AppendRecordsRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<AppendRecordsResponse>
Promise<Types.AppendRecordsResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:4941
- request: AppendRecordsRequest
Append (or insert) all records from a source table (specified by
source_table_name) to a particular target table (specified bytable_name). The field map (specified byfield_map) holds the user specified map of target table column names with their mapped source column names.