|
|
DUCKDB_API BoundStatement | Bind (SQLStatement &statement) |
| |
|
DUCKDB_API BoundStatement | Bind (QueryNode &node) |
| |
|
unique_ptr< BoundCreateTableInfo > | BindCreateTableInfo (unique_ptr< CreateInfo > info) |
| |
|
unique_ptr< BoundCreateTableInfo > | BindCreateTableInfo (unique_ptr< CreateInfo > info, SchemaCatalogEntry &schema) |
| |
|
unique_ptr< BoundCreateTableInfo > | BindCreateTableInfo (unique_ptr< CreateInfo > info, SchemaCatalogEntry &schema, vector< unique_ptr< Expression > > &bound_defaults) |
| |
|
vector< unique_ptr< BoundConstraint > > | BindConstraints (const vector< unique_ptr< Constraint > > &constraints, const string &table_name, const ColumnList &columns) |
| |
|
vector< unique_ptr< BoundConstraint > > | BindConstraints (const TableCatalogEntry &table) |
| |
|
vector< unique_ptr< BoundConstraint > > | BindNewConstraints (vector< unique_ptr< Constraint > > &constraints, const string &table_name, const ColumnList &columns) |
| |
|
unique_ptr< BoundConstraint > | BindConstraint (const Constraint &constraint, const string &table, const ColumnList &columns) |
| |
|
unique_ptr< BoundConstraint > | BindUniqueConstraint (const Constraint &constraint, const string &table, const ColumnList &columns) |
| |
|
BoundStatement | BindAlterAddIndex (BoundStatement &result, CatalogEntry &entry, unique_ptr< AlterInfo > alter_info) |
| |
|
void | SetCatalogLookupCallback (catalog_entry_callback_t callback) |
| |
|
void | BindCreateViewInfo (CreateViewInfo &base) |
| |
|
void | SearchSchema (CreateInfo &info) |
| |
|
SchemaCatalogEntry & | BindSchema (CreateInfo &info) |
| |
|
SchemaCatalogEntry & | BindCreateFunctionInfo (CreateInfo &info) |
| |
|
unique_ptr< BoundPragmaInfo > | BindPragma (PragmaInfo &info, QueryErrorContext error_context) |
| |
|
BoundStatement | Bind (TableRef &ref) |
| |
|
idx_t | GenerateTableIndex () |
| | Generates an unused index for a table.
|
| |
|
optional_ptr< CatalogEntry > | GetCatalogEntry (const string &catalog, const string &schema, const EntryLookupInfo &lookup_info, OnEntryNotFound on_entry_not_found) |
| |
|
optional_ptr< CTEBinding > | GetCTEBinding (const BindingAlias &name) |
| | Find all candidate common table expression by name; returns empty vector if none exists.
|
| |
|
void | AddBoundView (ViewCatalogEntry &view) |
| | Add the view to the set of currently bound views - used for detecting recursive view definitions.
|
| |
|
void | PushExpressionBinder (ExpressionBinder &binder) |
| |
|
void | PopExpressionBinder () |
| |
|
void | SetActiveBinder (ExpressionBinder &binder) |
| |
|
ExpressionBinder & | GetActiveBinder () |
| |
|
bool | HasActiveBinder () |
| |
|
vector< reference< ExpressionBinder > > & | GetActiveBinders () |
| |
|
void | MergeCorrelatedColumns (CorrelatedColumns &other) |
| |
|
void | AddCorrelatedColumn (const CorrelatedColumnInfo &info) |
| | Add a correlated column to this binder (if it does not exist)
|
| |
|
unique_ptr< LogicalOperator > | BindUpdateSet (LogicalOperator &op, unique_ptr< LogicalOperator > root, UpdateSetInfo &set_info, TableCatalogEntry &table, vector< PhysicalIndex > &columns, bool prioritize_table_when_binding=false) |
| |
|
void | BindUpdateSet (idx_t proj_index, unique_ptr< LogicalOperator > &root, UpdateSetInfo &set_info, TableCatalogEntry &table, vector< PhysicalIndex > &columns, vector< unique_ptr< Expression > > &update_expressions, vector< unique_ptr< Expression > > &projection_expressions, bool prioritize_table_when_binding=false) |
| |
|
void | BindVacuumTable (LogicalVacuum &vacuum, unique_ptr< LogicalOperator > &root) |
| |
|
void | BindLogicalType (LogicalType &type) |
| |
|
optional_ptr< Binding > | GetMatchingBinding (const string &table_name, const string &column_name, ErrorData &error) |
| |
|
optional_ptr< Binding > | GetMatchingBinding (const string &schema_name, const string &table_name, const string &column_name, ErrorData &error) |
| |
|
optional_ptr< Binding > | GetMatchingBinding (const string &catalog_name, const string &schema_name, const string &table_name, const string &column_name, ErrorData &error) |
| |
|
void | SetBindingMode (BindingMode mode) |
| |
|
BindingMode | GetBindingMode () |
| |
|
void | AddTableName (string table_name) |
| |
|
void | AddReplacementScan (const string &table_name, unique_ptr< TableRef > replacement) |
| |
|
const unordered_set< string > & | GetTableNames () |
| |
|
case_insensitive_map_t< unique_ptr< TableRef > > & | GetReplacementScans () |
| |
| CatalogEntryRetriever & | EntryRetriever () |
| |
|
optional_ptr< BoundParameterMap > | GetParameters () |
| |
|
void | SetParameters (BoundParameterMap ¶meters) |
| |
|
void | SetCanContainNulls (bool can_contain_nulls) |
| |
|
void | SetAlwaysRequireRebind () |
| |
|
StatementProperties & | GetStatementProperties () |
| |
|
unique_ptr< LogicalOperator > | UnionOperators (vector< unique_ptr< LogicalOperator > > nodes) |
| |
|
void | SetSearchPath (Catalog &catalog, const string &schema) |
| |
| shared_ptr< Binder > | shared_from_this () |
| |
| shared_ptr< Binder const > | shared_from_this () const |
| |
|
|
idx_t | GetBinderDepth () const |
| | Determine the depth of the binder.
|
| |
|
void | IncreaseDepth () |
| | Increase the depth of the binder.
|
| |
|
void | BindGeneratedColumns (BoundCreateTableInfo &info) |
| | Bind the expressions of generated columns to check for errors.
|
| |
|
void | BindDefaultValues (const ColumnList &columns, vector< unique_ptr< Expression > > &bound_defaults, const string &catalog="", const string &schema="") |
| | Bind the default values of the columns of a table.
|
| |
|
BoundLimitNode | BindLimitValue (OrderBinder &order_binder, unique_ptr< ParsedExpression > limit_val, bool is_percentage, bool is_offset) |
| | Bind a limit value (LIMIT or OFFSET)
|
| |
|
void | MoveCorrelatedExpressions (Binder &other) |
| | Move correlated expressions from the child binder to this binder.
|
| |
|
BoundStatement | BindWithReplacementScan (ClientContext &context, BaseTableRef &ref) |
| | Tries to bind the table name with replacement scans.
|
| |
|
template<class T > |
| BoundStatement | BindWithCTE (T &statement) |
| |
|
BoundStatement | Bind (SelectStatement &stmt) |
| |
|
BoundStatement | Bind (InsertStatement &stmt) |
| |
|
BoundStatement | Bind (CopyStatement &stmt, CopyToType copy_to_type) |
| |
|
BoundStatement | Bind (DeleteStatement &stmt) |
| |
|
BoundStatement | Bind (UpdateStatement &stmt) |
| |
|
BoundStatement | Bind (CreateStatement &stmt) |
| |
|
BoundStatement | Bind (DropStatement &stmt) |
| |
|
BoundStatement | Bind (AlterStatement &stmt) |
| |
|
BoundStatement | Bind (PrepareStatement &stmt) |
| |
|
BoundStatement | Bind (ExecuteStatement &stmt) |
| |
|
BoundStatement | Bind (TransactionStatement &stmt) |
| |
|
BoundStatement | Bind (PragmaStatement &stmt) |
| |
|
BoundStatement | Bind (ExplainStatement &stmt) |
| |
|
BoundStatement | Bind (VacuumStatement &stmt) |
| |
|
BoundStatement | Bind (RelationStatement &stmt) |
| |
|
BoundStatement | Bind (CallStatement &stmt) |
| |
|
BoundStatement | Bind (ExportStatement &stmt) |
| |
|
BoundStatement | Bind (ExtensionStatement &stmt) |
| |
|
BoundStatement | Bind (SetStatement &stmt) |
| |
|
BoundStatement | Bind (SetVariableStatement &stmt) |
| |
|
BoundStatement | Bind (ResetVariableStatement &stmt) |
| |
|
BoundStatement | Bind (LoadStatement &stmt) |
| |
|
BoundStatement | Bind (LogicalPlanStatement &stmt) |
| |
|
BoundStatement | Bind (AttachStatement &stmt) |
| |
|
BoundStatement | Bind (DetachStatement &stmt) |
| |
|
BoundStatement | Bind (CopyDatabaseStatement &stmt) |
| |
|
BoundStatement | Bind (UpdateExtensionsStatement &stmt) |
| |
|
BoundStatement | Bind (MergeIntoStatement &stmt) |
| |
|
void | BindRowIdColumns (TableCatalogEntry &table, LogicalGet &get, vector< unique_ptr< Expression > > &expressions) |
| |
|
BoundStatement | BindReturning (vector< unique_ptr< ParsedExpression > > returning_list, TableCatalogEntry &table, const string &alias, idx_t update_table_index, unique_ptr< LogicalOperator > child_operator, virtual_column_map_t virtual_columns=virtual_column_map_t()) |
| |
|
unique_ptr< QueryNode > | BindTableMacro (FunctionExpression &function, TableMacroCatalogEntry ¯o_func, idx_t depth) |
| |
|
BoundStatement | BindCTE (const string &ctename, CommonTableExpressionInfo &info) |
| |
|
BoundStatement | BindNode (SelectNode &node) |
| |
|
BoundStatement | BindNode (SetOperationNode &node) |
| |
|
BoundStatement | BindNode (RecursiveCTENode &node) |
| |
|
BoundStatement | BindNode (QueryNode &node) |
| |
|
BoundStatement | BindNode (StatementNode &node) |
| |
|
unique_ptr< LogicalOperator > | VisitQueryNode (BoundQueryNode &node, unique_ptr< LogicalOperator > root) |
| |
|
unique_ptr< LogicalOperator > | CreatePlan (BoundSelectNode &statement) |
| |
|
unique_ptr< LogicalOperator > | CreatePlan (BoundSetOperationNode &node) |
| |
|
unique_ptr< LogicalOperator > | CreatePlan (BoundQueryNode &node) |
| |
|
void | BuildUnionByNameInfo (BoundSetOperationNode &result) |
| |
|
BoundStatement | BindJoin (Binder &parent, TableRef &ref) |
| |
|
BoundStatement | Bind (BaseTableRef &ref) |
| |
|
BoundStatement | Bind (BoundRefWrapper &ref) |
| |
|
BoundStatement | Bind (JoinRef &ref) |
| |
|
BoundStatement | Bind (SubqueryRef &ref) |
| |
|
BoundStatement | Bind (TableFunctionRef &ref) |
| |
|
BoundStatement | Bind (EmptyTableRef &ref) |
| |
|
BoundStatement | Bind (DelimGetRef &ref) |
| |
|
BoundStatement | Bind (ExpressionListRef &ref) |
| |
|
BoundStatement | Bind (ColumnDataRef &ref) |
| |
|
BoundStatement | Bind (PivotRef &expr) |
| |
|
BoundStatement | Bind (ShowRef &ref) |
| |
|
unique_ptr< SelectNode > | BindPivot (PivotRef &expr, vector< unique_ptr< ParsedExpression > > all_columns) |
| |
|
unique_ptr< SelectNode > | BindUnpivot (Binder &child_binder, PivotRef &expr, vector< unique_ptr< ParsedExpression > > all_columns, unique_ptr< ParsedExpression > &where_clause) |
| |
|
BoundStatement | BindBoundPivot (PivotRef &expr) |
| |
|
void | ExtractUnpivotEntries (Binder &child_binder, PivotColumnEntry &entry, vector< UnpivotEntry > &unpivot_entries) |
| |
|
void | ExtractUnpivotColumnName (ParsedExpression &expr, vector< string > &result) |
| |
|
unique_ptr< BoundAtClause > | BindAtClause (optional_ptr< AtClause > at_clause) |
| |
|
bool | BindTableFunctionParameters (TableFunctionCatalogEntry &table_function, vector< unique_ptr< ParsedExpression > > &expressions, vector< LogicalType > &arguments, vector< Value > ¶meters, named_parameter_map_t &named_parameters, BoundStatement &subquery, ErrorData &error) |
| |
|
void | BindTableInTableOutFunction (vector< unique_ptr< ParsedExpression > > &expressions, BoundStatement &subquery) |
| |
|
BoundStatement | BindTableFunction (TableFunction &function, vector< Value > parameters) |
| |
|
BoundStatement | BindTableFunctionInternal (TableFunction &table_function, const TableFunctionRef &ref, vector< Value > parameters, named_parameter_map_t named_parameters, vector< LogicalType > input_table_types, vector< string > input_table_names) |
| |
|
unique_ptr< LogicalOperator > | CreatePlan (BoundJoinRef &ref) |
| |
|
BoundStatement | BindCopyTo (CopyStatement &stmt, const CopyFunction &function, CopyToType copy_to_type) |
| |
|
BoundStatement | BindCopyFrom (CopyStatement &stmt, const CopyFunction &function) |
| |
|
void | BindCopyOptions (CopyInfo &info) |
| |
|
case_insensitive_map_t< CopyOption > | GetFullCopyOptionsList (const CopyFunction &function, CopyOptionMode mode) |
| |
|
void | PrepareModifiers (OrderBinder &order_binder, QueryNode &statement, BoundQueryNode &result) |
| |
|
void | BindModifiers (BoundQueryNode &result, idx_t table_index, const vector< string > &names, const vector< LogicalType > &sql_types, const SelectBindState &bind_state) |
| |
|
unique_ptr< BoundResultModifier > | BindLimit (OrderBinder &order_binder, LimitModifier &limit_mod) |
| |
|
unique_ptr< BoundResultModifier > | BindLimitPercent (OrderBinder &order_binder, LimitPercentModifier &limit_mod) |
| |
|
unique_ptr< Expression > | BindOrderExpression (OrderBinder &order_binder, unique_ptr< ParsedExpression > expr) |
| |
|
unique_ptr< LogicalOperator > | PlanFilter (unique_ptr< Expression > condition, unique_ptr< LogicalOperator > root) |
| |
|
void | PlanSubqueries (unique_ptr< Expression > &expr, unique_ptr< LogicalOperator > &root) |
| |
|
unique_ptr< Expression > | PlanSubquery (BoundSubqueryExpression &expr, unique_ptr< LogicalOperator > &root) |
| |
|
unique_ptr< LogicalOperator > | PlanLateralJoin (unique_ptr< LogicalOperator > left, unique_ptr< LogicalOperator > right, CorrelatedColumns &correlated_columns, JoinType join_type=JoinType::INNER, unique_ptr< Expression > condition=nullptr) |
| |
|
unique_ptr< LogicalOperator > | CastLogicalOperatorToTypes (const vector< LogicalType > &source_types, const vector< LogicalType > &target_types, unique_ptr< LogicalOperator > op) |
| |
|
BindingAlias | FindBinding (const string &using_column, const string &join_side) |
| |
|
bool | TryFindBinding (const string &using_column, const string &join_side, BindingAlias &result) |
| |
|
void | AddUsingBindingSet (unique_ptr< UsingColumnSet > set) |
| |
|
BindingAlias | RetrieveUsingBinding (Binder ¤t_binder, optional_ptr< UsingColumnSet > current_set, const string &column_name, const string &join_side) |
| |
|
void | ExpandStarExpressions (vector< unique_ptr< ParsedExpression > > &select_list, vector< unique_ptr< ParsedExpression > > &new_select_list) |
| |
|
void | ExpandStarExpression (unique_ptr< ParsedExpression > expr, vector< unique_ptr< ParsedExpression > > &new_select_list) |
| |
|
StarExpressionType | FindStarExpression (unique_ptr< ParsedExpression > &expr, StarExpression **star, bool is_root, bool in_columns) |
| |
|
void | ReplaceUnpackedStarExpression (unique_ptr< ParsedExpression > &expr, vector< unique_ptr< ParsedExpression > > &replacements, StarExpression &star, optional_ptr< duckdb_re2::RE2 > regex) |
| |
|
void | BindWhereStarExpression (unique_ptr< ParsedExpression > &expr) |
| |
|
void | BindSchemaOrCatalog (string &catalog_name, string &schema_name) |
| | If only a schema name is provided (e.g. "a.b") then figure out if "a" is a schema or a catalog name.
|
| |
|
const string | BindCatalog (string &catalog_name) |
| |
|
SchemaCatalogEntry & | BindCreateSchema (CreateInfo &info) |
| |
|
vector< CatalogSearchEntry > | GetSearchPath (Catalog &catalog, const string &schema_name) |
| |
|
LogicalType | BindLogicalTypeInternal (const unique_ptr< ParsedExpression > &type_expr) |
| |
|
BoundStatement | BindSelectNode (SelectNode &statement, BoundStatement from_table) |
| |
|
unique_ptr< LogicalOperator > | BindCopyDatabaseSchema (Catalog &source_catalog, const string &target_database_name) |
| |
|
unique_ptr< LogicalOperator > | BindCopyDatabaseData (Catalog &source_catalog, const string &target_database_name) |
| |
|
BoundStatement | BindShowQuery (ShowRef &ref) |
| |
|
BoundStatement | BindShowTable (ShowRef &ref) |
| |
|
BoundStatement | BindSummarize (ShowRef &ref) |
| |
|
void | BindInsertColumnList (TableCatalogEntry &table, vector< string > &columns, bool default_values, vector< LogicalIndex > &named_column_map, vector< LogicalType > &expected_types, IndexVector< idx_t, PhysicalIndex > &column_index_map) |
| |
|
void | TryReplaceDefaultExpression (unique_ptr< ParsedExpression > &expr, const ColumnDefinition &column) |
| |
|
void | ExpandDefaultInValuesList (InsertStatement &stmt, TableCatalogEntry &table, optional_ptr< ExpressionListRef > values_list, const vector< LogicalIndex > &named_column_map) |
| |
|
unique_ptr< BoundMergeIntoAction > | BindMergeAction (LogicalMergeInto &merge_into, TableCatalogEntry &table, LogicalGet &get, idx_t proj_index, vector< unique_ptr< Expression > > &expressions, unique_ptr< LogicalOperator > &root, MergeIntoAction &action, const vector< BindingAlias > &source_aliases, const vector< string > &source_names) |
| |
|
unique_ptr< MergeIntoStatement > | GenerateMergeInto (InsertStatement &stmt, TableCatalogEntry &table) |
| |
|
BoundCTEData | PrepareCTE (const string &ctename, CommonTableExpressionInfo &statement) |
| |
|
BoundStatement | FinishCTE (BoundCTEData &bound_cte, BoundStatement child_data) |
| |
|
shared_ptr< Binder > | CreateBinderWithSearchPath (const string &catalog_name, const string &schema_name) |
| |
|
| Binder (ClientContext &context, shared_ptr< Binder > parent, BinderType binder_type) |
| |
Bind the parsed query tree to the actual columns present in the catalog.
The binder is responsible for binding tables and columns to actual physical tables and columns in the catalog. In the process, it also resolves types of all expressions.