ConflictInfo contains information to match indexes to ON CONFLICT DO targets.
More...
#include <duckdb.hpp>
|
|
const unordered_set< column_t > & | column_ids |
|
bool | only_check_unique = true |
ConflictInfo contains information to match indexes to ON CONFLICT DO targets.
◆ ConflictInfo()
| duckdb::ConflictInfo::ConflictInfo |
( |
const unordered_set< column_t > & | column_ids, |
|
|
bool | only_check_unique = true ) |
|
inlineexplicit |
47449 : column_ids(column_ids), only_check_unique(only_check_unique) {
47450 }
◆ ConflictTargetMatches()
| bool duckdb::ConflictInfo::ConflictTargetMatches |
( |
Index & | index | ) |
const |
116597 {
116598 if (only_check_unique && !
index.IsUnique()) {
116599
116600 return false;
116601 }
116602 if (column_ids.empty()) {
116603 return true;
116604 }
116605 return column_ids ==
index.GetColumnIdSet();
116606}
◆ SingleIndexTarget()
| bool duckdb::ConflictInfo::SingleIndexTarget |
( |
| ) |
const |
|
inline |
True, if the conflict info references the column ids of a single index, else false.
47458 {
47459 return !column_ids.empty();
47460 }
The documentation for this class was generated from the following files: