GPUdb C++ API  Version 6.2.0.3
gpudb::UpdateRecordsResponse Struct Reference

A set of output parameters for updateRecordsRaw(const RawUpdateRecordsRequest&) 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
 

Detailed Description

A set of output parameters for updateRecordsRaw(const RawUpdateRecordsRequest&) 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.

Definition at line 510 of file update_records.h.

Constructor & Destructor Documentation

◆ UpdateRecordsResponse()

gpudb::UpdateRecordsResponse::UpdateRecordsResponse ( )
inline

Constructs an UpdateRecordsResponse object with default parameter values.

Definition at line 517 of file update_records.h.

Member Data Documentation

◆ countInserted

int64_t gpudb::UpdateRecordsResponse::countInserted

Definition at line 527 of file update_records.h.

◆ countsInserted

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

Definition at line 528 of file update_records.h.

◆ countsUpdated

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

Definition at line 526 of file update_records.h.

◆ countUpdated

int64_t gpudb::UpdateRecordsResponse::countUpdated

Definition at line 525 of file update_records.h.


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