SelectStatement is a typical SELECT clause.
More...
#include <duckdb.hpp>
|
| DUCKDB_API string | ToString () const override |
| | Convert the SELECT statement to a string.
|
| DUCKDB_API unique_ptr< SQLStatement > | Copy () const override |
| | Create a copy of this SelectStatement.
|
| bool | Equals (const SQLStatement &other) const |
| | Whether or not the statements are equivalent.
|
| void | Serialize (Serializer &serializer) const |
| | SQLStatement (StatementType type) |
| template<class TARGET> |
| TARGET & | Cast () |
| template<class TARGET> |
| const TARGET & | Cast () const |
|
|
unique_ptr< QueryNode > | node |
| | The main query node.
|
|
StatementType | type |
| | The statement type.
|
|
idx_t | stmt_location = 0 |
| | The statement location within the query string.
|
|
idx_t | stmt_length = 0 |
| | The statement length within the query string.
|
|
case_insensitive_map_t< idx_t > | named_param_map |
| | The map of named parameter to param index.
|
|
string | query |
| | The query text that corresponds to this SQL statement.
|
|
|
static constexpr const StatementType | TYPE = StatementType::SELECT_STATEMENT |
|
static constexpr const StatementType | TYPE = StatementType::INVALID_STATEMENT |
|
| | SelectStatement (const SelectStatement &other) |
|
| SQLStatement (const SQLStatement &other)=default |
SelectStatement is a typical SELECT clause.
◆ SelectStatement() [1/2]
| duckdb::SelectStatement::SelectStatement |
( |
| ) |
|
|
inline |
53800 : SQLStatement(StatementType::SELECT_STATEMENT) {
53801 }
◆ SelectStatement() [2/2]
| duckdb::SelectStatement::SelectStatement |
( |
const SelectStatement & | other | ) |
|
|
protected |
349843 : SQLStatement(other),
node(other.node->Copy()) {
349844}
unique_ptr< QueryNode > node
The main query node.
Definition duckdb.hpp:53804
◆ ToString()
| string duckdb::SelectStatement::ToString |
( |
| ) |
const |
|
overridevirtual |
Convert the SELECT statement to a string.
Implements duckdb::SQLStatement.
349858 {
349859 return node->ToString();
349860}
◆ Copy()
| unique_ptr< SQLStatement > duckdb::SelectStatement::Copy |
( |
| ) |
const |
|
overridevirtual |
◆ Equals()
| bool duckdb::SelectStatement::Equals |
( |
const SQLStatement & | other | ) |
const |
Whether or not the statements are equivalent.
349850 {
349851 if (
type != other_p.type) {
349852 return false;
349853 }
349854 auto &other = other_p.Cast<SelectStatement>();
349855 return node->Equals(other.node.get());
349856}
StatementType type
The statement type.
Definition duckdb.hpp:41978
◆ Serialize()
| void duckdb::SelectStatement::Serialize |
( |
Serializer & | serializer | ) |
const |
419273 {
419274 serializer.WritePropertyWithDefault<unique_ptr<QueryNode>>(100,
"node",
node);
419275 serializer.WritePropertyWithDefault<case_insensitive_map_t<idx_t>>(101,
"named_param_map",
named_param_map);
419276}
case_insensitive_map_t< idx_t > named_param_map
The map of named parameter to param index.
Definition duckdb.hpp:41984
◆ Deserialize()
419278 {
419279 auto result = duckdb::unique_ptr<SelectStatement>(new SelectStatement());
419280 deserializer.ReadPropertyWithDefault<unique_ptr<QueryNode>>(100, "node", result->node);
419281 deserializer.ReadPropertyWithDefault<case_insensitive_map_t<idx_t>>(101, "named_param_map", result->named_param_map);
419282 return result;
419283}
The documentation for this class was generated from the following files: