|
| DUCKDB_API | CreateCollationInfo (string name_p, ScalarFunction function_p, bool combinable_p, bool not_required_for_equality_p) |
| unique_ptr< CreateInfo > | Copy () const override |
| | CreateInfo (CatalogType type, string schema=DEFAULT_SCHEMA, string catalog_p=INVALID_CATALOG) |
| void | Serialize (Serializer &serializer) const override |
| DUCKDB_API void | CopyProperties (CreateInfo &other) const |
| virtual DUCKDB_API unique_ptr< AlterInfo > | GetAlterInfo () const |
| | Generates an alter statement from the create statement - used for OnCreateConflict::ALTER_ON_CONFLICT.
|
| DUCKDB_API string | GetCreatePrefix (const string &entry) const |
| | Returns a string like "CREATE (OR REPLACE) (TEMPORARY) <entry> (IF NOT EXISTS) " for TABLE/VIEW/TYPE/MACRO.
|
| virtual string | ToString () const |
| | ParseInfo (ParseInfoType info_type) |
| template<class TARGET> |
| TARGET & | Cast () |
| template<class TARGET> |
| const TARGET & | Cast () const |
|
|
string | name |
| | The name of the collation.
|
|
ScalarFunction | function |
| | The collation function to push in case collation is required.
|
|
bool | combinable |
| | Whether or not the collation can be combined with other collations.
|
| bool | not_required_for_equality |
|
CatalogType | type |
| | The to-be-created catalog type.
|
|
string | catalog |
| | The catalog name of the entry.
|
|
string | schema |
| | The schema name of the entry.
|
|
OnCreateConflict | on_conflict |
| | What to do on create conflict.
|
|
bool | temporary |
| | Whether or not the entry is temporary.
|
|
bool | internal |
| | Whether or not the entry is an internal entry.
|
|
string | sql |
| | The SQL string of the CREATE statement.
|
|
LogicalDependencyList | dependencies |
| | The inherent dependencies of the created entry.
|
|
Value | comment |
| | User provided comment.
|
|
InsertionOrderPreservingMap< string > | tags |
| | Key-value tags with additional metadata.
|
|
ParseInfoType | info_type |
◆ CreateCollationInfo()
| duckdb::CreateCollationInfo::CreateCollationInfo |
( |
string | name_p, |
|
|
ScalarFunction | function_p, |
|
|
bool | combinable_p, |
|
|
bool | not_required_for_equality_p ) |
339232 : CreateInfo(CatalogType::COLLATION_ENTRY),
function(std::move(function_p)),
combinable(combinable_p),
339234 this->
name = std::move(name_p);
339236}
string name
The name of the collation.
Definition duckdb.cpp:186
bool not_required_for_equality
Definition duckdb.cpp:194
ScalarFunction function
The collation function to push in case collation is required.
Definition duckdb.cpp:188
bool combinable
Whether or not the collation can be combined with other collations.
Definition duckdb.cpp:190
bool internal
Whether or not the entry is an internal entry.
Definition duckdb.hpp:28168
◆ Copy()
| unique_ptr< CreateInfo > duckdb::CreateCollationInfo::Copy |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::CreateInfo.
339238 {
339240 CopyProperties(*result);
339241 return std::move(result);
339242}
◆ not_required_for_equality
| bool duckdb::CreateCollationInfo::not_required_for_equality |
Whether or not the collation is required for equality comparisons or not. For many collations a binary comparison for equality comparisons is correct, allowing us to skip the collation in these cases which greatly speeds up processing.
The documentation for this struct was generated from the following file: