|
|
| BindContext (Binder &binder) |
| |
| optional_ptr< Binding > | GetMatchingBinding (const string &column_name, QueryErrorContext context=QueryErrorContext()) |
| |
| vector< reference< Binding > > | GetMatchingBindings (const string &column_name) |
| |
| vector< string > | GetSimilarBindings (const string &column_name) |
| |
|
optional_ptr< CTEBinding > | GetCTEBinding (const BindingAlias &ctename) |
| |
| BindResult | BindColumn (ColumnRefExpression &colref, idx_t depth) |
| |
|
string | BindColumn (PositionalReferenceExpression &ref, string &table_name, string &column_name) |
| |
|
unique_ptr< ColumnRefExpression > | PositionToColumn (PositionalReferenceExpression &ref) |
| |
|
unique_ptr< ParsedExpression > | ExpandGeneratedColumn (TableBinding &table_binding, const string &column_name) |
| |
|
unique_ptr< ParsedExpression > | CreateColumnReference (const string &table_name, const string &column_name, ColumnBindType bind_type=ColumnBindType::EXPAND_GENERATED_COLUMNS) |
| |
|
unique_ptr< ParsedExpression > | CreateColumnReference (const string &schema_name, const string &table_name, const string &column_name, ColumnBindType bind_type=ColumnBindType::EXPAND_GENERATED_COLUMNS) |
| |
|
unique_ptr< ParsedExpression > | CreateColumnReference (const string &catalog_name, const string &schema_name, const string &table_name, const string &column_name, ColumnBindType bind_type=ColumnBindType::EXPAND_GENERATED_COLUMNS) |
| |
|
unique_ptr< ParsedExpression > | CreateColumnReference (const BindingAlias &table_alias, const string &column_name, ColumnBindType bind_type=ColumnBindType::EXPAND_GENERATED_COLUMNS) |
| |
| void | GenerateAllColumnExpressions (StarExpression &expr, vector< unique_ptr< ParsedExpression > > &new_select_list) |
| |
| const vector< unique_ptr< Binding > > & | GetBindingsList () |
| |
|
vector< BindingAlias > | GetBindingAliases () |
| |
|
void | GetTypesAndNames (vector< string > &result_names, vector< LogicalType > &result_types) |
| |
|
void | AddBaseTable (idx_t index, const string &alias, const vector< string > &names, const vector< LogicalType > &types, vector< ColumnIndex > &bound_column_ids, TableCatalogEntry &entry, bool add_row_id=true) |
| | Adds a base table with the given alias to the BindContext.
|
| |
|
void | AddBaseTable (idx_t index, const string &alias, const vector< string > &names, const vector< LogicalType > &types, vector< ColumnIndex > &bound_column_ids, const string &table_name) |
| |
|
void | AddBaseTable (idx_t index, const string &alias, const vector< string > &names, const vector< LogicalType > &types, vector< ColumnIndex > &bound_column_ids, TableCatalogEntry &entry, virtual_column_map_t virtual_columns) |
| |
|
void | AddTableFunction (idx_t index, const string &alias, const vector< string > &names, const vector< LogicalType > &types, vector< ColumnIndex > &bound_column_ids, optional_ptr< StandardEntry > entry, virtual_column_map_t virtual_columns) |
| | Adds a call to a table function with the given alias to the BindContext.
|
| |
|
void | AddView (idx_t index, const string &alias, SubqueryRef &ref, BoundStatement &subquery, ViewCatalogEntry &view) |
| | Adds a table view with a given alias to the BindContext.
|
| |
|
void | AddSubquery (idx_t index, const string &alias, SubqueryRef &ref, BoundStatement &subquery) |
| | Adds a subquery with a given alias to the BindContext.
|
| |
|
void | AddSubquery (idx_t index, const string &alias, TableFunctionRef &ref, BoundStatement &subquery) |
| | Adds a subquery with a given alias to the BindContext.
|
| |
|
void | AddEntryBinding (idx_t index, const string &alias, const vector< string > &names, const vector< LogicalType > &types, StandardEntry &entry) |
| | Adds a binding to a catalog entry with a given alias to the BindContext.
|
| |
|
void | AddGenericBinding (idx_t index, const string &alias, const vector< string > &names, const vector< LogicalType > &types) |
| | Adds a base table with the given alias to the BindContext.
|
| |
| void | AddCTEBinding (idx_t index, BindingAlias alias, const vector< string > &names, const vector< LogicalType > &types, CTEType cte_type=CTEType::CAN_BE_REFERENCED) |
| |
|
void | AddCTEBinding (unique_ptr< CTEBinding > binding) |
| |
|
void | AddUsingBinding (const string &column_name, UsingColumnSet &set) |
| | Add an implicit join condition (e.g. USING (x))
|
| |
|
void | AddUsingBindingSet (unique_ptr< UsingColumnSet > set) |
| |
| optional_ptr< UsingColumnSet > | GetUsingBinding (const string &column_name) |
| |
|
optional_ptr< UsingColumnSet > | GetUsingBinding (const string &column_name, const BindingAlias &binding) |
| | Returns any using column set for the given column name, or nullptr if there is none.
|
| |
|
void | RemoveUsingBinding (const string &column_name, UsingColumnSet &set) |
| | Erase a using binding from the set of using bindings.
|
| |
|
void | TransferUsingBinding (BindContext ¤t_context, optional_ptr< UsingColumnSet > current_set, UsingColumnSet &new_set, const string &using_column) |
| | Transfer a using binding from one bind context to this bind context.
|
| |
| string | GetActualColumnName (const BindingAlias &binding_alias, const string &column_name) |
| |
|
string | GetActualColumnName (Binding &binding, const string &column_name) |
| |
|
void | AddContext (BindContext other) |
| | Add all the bindings from a BindContext to this BindContext. The other BindContext is destroyed in the process.
|
| |
|
void | RemoveContext (const vector< BindingAlias > &aliases) |
| | For semi and anti joins we remove the binding context of the right table after binding the condition.
|
| |
| optional_ptr< Binding > | GetBinding (const string &name, ErrorData &out_error) |
| |
|
optional_ptr< Binding > | GetBinding (const BindingAlias &alias, ErrorData &out_error) |
| |
|
optional_ptr< Binding > | GetBinding (const BindingAlias &alias, const string &column_name, ErrorData &out_error) |
| |
|
vector< reference< Binding > > | GetBindings (const BindingAlias &alias, ErrorData &out_error) |
| | Get all bindings that match a specific binding alias - returns an error if none match.
|
| |
The BindContext object keeps track of all the tables and columns that are encountered during the binding process.