Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::CreateSequenceInfo Struct Reference
Inheritance diagram for duckdb::CreateSequenceInfo:
Collaboration diagram for duckdb::CreateSequenceInfo:

Public Member Functions

unique_ptr< CreateInfo > Copy () const override
DUCKDB_API void Serialize (Serializer &serializer) const override
string ToString () const override
Public Member Functions inherited from duckdb::CreateInfo
 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.
Public Member Functions inherited from duckdb::ParseInfo
 ParseInfo (ParseInfoType info_type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static DUCKDB_API unique_ptr< CreateInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::CreateInfo
static unique_ptr< CreateInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::ParseInfo
static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
static string QualifierToString (const string &catalog, const string &schema, const string &name)
static string TypeToString (CatalogType type)

Public Attributes

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.
Public Attributes inherited from duckdb::CreateInfo
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.
Public Attributes inherited from duckdb::ParseInfo
ParseInfoType info_type

Additional Inherited Members

Static Public Attributes inherited from duckdb::CreateInfo
static constexpr const ParseInfoType TYPE = ParseInfoType::CREATE_INFO

Constructor & Destructor Documentation

◆ CreateSequenceInfo()

duckdb::CreateSequenceInfo::CreateSequenceInfo ( )
339643 : CreateInfo(CatalogType::SEQUENCE_ENTRY, INVALID_SCHEMA), name(string()), usage_count(0), increment(1),
339644 min_value(1), max_value(NumericLimits<int64_t>::Maximum()), start_value(1), cycle(false) {
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

Member Function Documentation

◆ 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;
339652 result->usage_count = usage_count;
339653 result->increment = increment;
339654 result->min_value = min_value;
339655 result->max_value = max_value;
339656 result->start_value = start_value;
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);
415777 serializer.WritePropertyWithDefault<uint64_t>(201, "usage_count", usage_count);
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);
415781 serializer.WritePropertyWithDefault<int64_t>(205, "start_value", start_value);
415782 serializer.WritePropertyWithDefault<bool>(206, "cycle", cycle);
415783}
::int64_t int64_t
::uint64_t uint64_t

◆ Deserialize()

unique_ptr< CreateInfo > duckdb::CreateSequenceInfo::Deserialize ( Deserializer & deserializer)
static
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 }
339667 if (temporary) {
339668 ss << " TEMPORARY";
339669 }
339670 ss << " SEQUENCE ";
339671 if (on_conflict == OnCreateConflict::IGNORE_ON_CONFLICT) {
339672 ss << " IF NOT EXISTS ";
339673 }
339674 ss << QualifierToString(temporary ? "" : catalog, schema, name);
339675 ss << " INCREMENT BY " << increment;
339676 ss << " MINVALUE " << min_value;
339677 ss << " MAXVALUE " << max_value;
339678 ss << " START " << start_value;
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: