GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gpudb::UpdateRecordsResponse Struct Reference

A set of output parameters for const. More...

#include <gpudb/protocol/update_records.h>

Public Member Functions

 UpdateRecordsResponse ()
 Constructs an UpdateRecordsResponse object with default parameter values. More...
 

Public Attributes

int64_t countUpdated
 
std::vector< int64_t > countsUpdated
 
int64_t countInserted
 
std::vector< int64_t > countsInserted
 
std::map< std::string,
std::string > 
info
 

Detailed Description

A set of output parameters for const.

Runs multiple predicate-based updates in a single call. With the list of given expressions, any matching record's column values will be updated as provided in newValuesMaps. There is also an optional 'upsert' capability where if a particular predicate doesn't match any existing record, then a new record can be inserted.

Note that this operation can only be run on an original table and not on a collection or a result view.

This operation can update primary key values. By default only 'pure primary key' predicates are allowed when updating primary key values. If the primary key for a table is the column 'attr1', then the operation will only accept predicates of the form: "attr1 == 'foo'" if the attr1 column is being updated. For a composite primary key (e.g. columns 'attr1' and 'attr2') then this operation will only accept predicates of the form: "(attr1 == 'foo') and (attr2 == 'bar')". Meaning, all primary key columns must appear in an equality predicate in the expressions. Furthermore each 'pure primary key' predicate must be unique within a given request. These restrictions can be removed by utilizing some available options through options.Note that this operation can only be run on an original table and not on a collection or a result view.

The update_on_existing_pk option specifies the record collision policy for tables with a primary key, and is ignored on tables with no primary key.

Definition at line 651 of file update_records.h.

Constructor & Destructor Documentation

gpudb::UpdateRecordsResponse::UpdateRecordsResponse ( )
inline

Constructs an UpdateRecordsResponse object with default parameter values.

Definition at line 658 of file update_records.h.

Member Data Documentation

int64_t gpudb::UpdateRecordsResponse::countInserted

Definition at line 669 of file update_records.h.

std::vector<int64_t> gpudb::UpdateRecordsResponse::countsInserted

Definition at line 670 of file update_records.h.

std::vector<int64_t> gpudb::UpdateRecordsResponse::countsUpdated

Definition at line 668 of file update_records.h.

int64_t gpudb::UpdateRecordsResponse::countUpdated

Definition at line 667 of file update_records.h.

std::map<std::string, std::string> gpudb::UpdateRecordsResponse::info

Definition at line 671 of file update_records.h.


The documentation for this struct was generated from the following file: