|
| unique_ptr< CreateInfo > | Copy () const override |
| DUCKDB_API void | Serialize (Serializer &serializer) const override |
| string | ToString () const override |
| | CreateInfo (CatalogType type, string schema=DEFAULT_SCHEMA, string catalog_p=INVALID_CATALOG) |
| 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.
|
| | ParseInfo (ParseInfoType info_type) |
| template<class TARGET> |
| TARGET & | Cast () |
| template<class TARGET> |
| const TARGET & | Cast () const |
|
|
string | name |
| | Sequence name to create.
|
|
uint64_t | usage_count |
| | Usage count of the sequence.
|
|
int64_t | increment |
| | The increment value.
|
|
int64_t | min_value |
| | The minimum value of the sequence.
|
|
int64_t | max_value |
| | The maximum value of the sequence.
|
|
int64_t | start_value |
| | The start value of the sequence.
|
|
bool | cycle |
| | Whether or not the sequence cycles.
|
|
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 |
|
|
static constexpr const ParseInfoType | TYPE = ParseInfoType::CREATE_INFO |
◆ CreateSequenceInfo()
| duckdb::CreateSequenceInfo::CreateSequenceInfo |
( |
| ) |
|
339645}
string name
Sequence name to create.
Definition duckdb.hpp:28220
int64_t start_value
The start value of the sequence.
Definition duckdb.hpp:28230
int64_t increment
The increment value.
Definition duckdb.hpp:28224
uint64_t usage_count
Usage count of the sequence.
Definition duckdb.hpp:28222
bool cycle
Whether or not the sequence cycles.
Definition duckdb.hpp:28232
int64_t min_value
The minimum value of the sequence.
Definition duckdb.hpp:28226
int64_t max_value
The maximum value of the sequence.
Definition duckdb.hpp:28228
◆ Copy()
| unique_ptr< CreateInfo > duckdb::CreateSequenceInfo::Copy |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::CreateInfo.
339647 {
339648 auto result = make_uniq<CreateSequenceInfo>();
339649 CopyProperties(*result);
339650 result->name =
name;
339651 result->schema =
schema;
339657 result->cycle =
cycle;
339658 return std::move(result);
339659}
string schema
The schema name of the entry.
Definition duckdb.hpp:28162
◆ Serialize()
| void duckdb::CreateSequenceInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::CreateInfo.
415774 {
415775 CreateInfo::Serialize(serializer);
415776 serializer.WritePropertyWithDefault<
string>(200,
"name",
name);
415778 serializer.WritePropertyWithDefault<
int64_t>(202,
"increment",
increment);
415779 serializer.WritePropertyWithDefault<
int64_t>(203,
"min_value",
min_value);
415780 serializer.WritePropertyWithDefault<
int64_t>(204,
"max_value",
max_value);
415782 serializer.WritePropertyWithDefault<
bool>(206,
"cycle",
cycle);
415783}
◆ Deserialize()
415785 {
415786 auto result = duckdb::unique_ptr<CreateSequenceInfo>(new CreateSequenceInfo());
415787 deserializer.ReadPropertyWithDefault<string>(200, "name", result->name);
415788 deserializer.ReadPropertyWithDefault<
uint64_t>(201,
"usage_count", result->usage_count);
415789 deserializer.ReadPropertyWithDefault<
int64_t>(202,
"increment", result->increment);
415790 deserializer.ReadPropertyWithDefault<
int64_t>(203,
"min_value", result->min_value);
415791 deserializer.ReadPropertyWithDefault<
int64_t>(204,
"max_value", result->max_value);
415792 deserializer.ReadPropertyWithDefault<
int64_t>(205,
"start_value", result->start_value);
415793 deserializer.ReadPropertyWithDefault<bool>(206, "cycle", result->cycle);
415794 return std::move(result);
415795}
◆ ToString()
| string duckdb::CreateSequenceInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Reimplemented from duckdb::CreateInfo.
339661 {
339662 duckdb::stringstream ss;
339663 ss << "CREATE";
339664 if (
on_conflict == OnCreateConflict::REPLACE_ON_CONFLICT) {
339665 ss << " OR REPLACE";
339666 }
339668 ss << " TEMPORARY";
339669 }
339670 ss << " SEQUENCE ";
339671 if (
on_conflict == OnCreateConflict::IGNORE_ON_CONFLICT) {
339672 ss << " IF NOT EXISTS ";
339673 }
339679 ss <<
" " << (
cycle ?
"CYCLE" :
"NO CYCLE") <<
";";
339680 return ss.str();
339681}
bool temporary
Whether or not the entry is temporary.
Definition duckdb.hpp:28166
string catalog
The catalog name of the entry.
Definition duckdb.hpp:28160
OnCreateConflict on_conflict
What to do on create conflict.
Definition duckdb.hpp:28164
The documentation for this struct was generated from the following files: