|
| | DuckCatalog (AttachedDatabase &db) |
| |
| bool | IsDuckCatalog () override |
| |
| void | Initialize (bool load_builtin) override |
| |
| string | GetCatalogType () override |
| |
| mutex & | GetWriteLock () |
| |
| void | SetEncryptionKeyId (const string &key_id) |
| |
| string & | GetEncryptionKeyId () |
| |
| void | SetIsEncrypted () |
| |
| bool | GetIsEncrypted () |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateSchema (CatalogTransaction transaction, CreateSchemaInfo &info) override |
| | Creates a schema in the catalog.
|
| |
| DUCKDB_API void | ScanSchemas (ClientContext &context, std::function< void(SchemaCatalogEntry &)> callback) override |
| | Scans all the schemas in the system one-by-one, invoking the callback for each entry.
|
| |
| DUCKDB_API void | ScanSchemas (std::function< void(SchemaCatalogEntry &)> callback) |
| |
| DUCKDB_API optional_ptr< SchemaCatalogEntry > | LookupSchema (CatalogTransaction transaction, const EntryLookupInfo &schema_lookup, OnEntryNotFound if_not_found) override |
| |
| DUCKDB_API PhysicalOperator & | PlanCreateTableAs (ClientContext &context, PhysicalPlanGenerator &planner, LogicalCreateTable &op, PhysicalOperator &plan) override |
| |
| DUCKDB_API PhysicalOperator & | PlanInsert (ClientContext &context, PhysicalPlanGenerator &planner, LogicalInsert &op, optional_ptr< PhysicalOperator > plan) override |
| |
| DUCKDB_API PhysicalOperator & | PlanDelete (ClientContext &context, PhysicalPlanGenerator &planner, LogicalDelete &op, PhysicalOperator &plan) override |
| |
| DUCKDB_API PhysicalOperator & | PlanUpdate (ClientContext &context, PhysicalPlanGenerator &planner, LogicalUpdate &op, PhysicalOperator &plan) override |
| |
| DUCKDB_API PhysicalOperator & | PlanMergeInto (ClientContext &context, PhysicalPlanGenerator &planner, LogicalMergeInto &op, PhysicalOperator &plan) override |
| |
| DUCKDB_API unique_ptr< LogicalOperator > | BindCreateIndex (Binder &binder, CreateStatement &stmt, TableCatalogEntry &table, unique_ptr< LogicalOperator > plan) override |
| |
| DUCKDB_API unique_ptr< LogicalOperator > | BindAlterAddIndex (Binder &binder, TableCatalogEntry &table_entry, unique_ptr< LogicalOperator > plan, unique_ptr< CreateIndexInfo > create_info, unique_ptr< AlterTableInfo > alter_info) override |
| |
| CatalogSet & | GetSchemaCatalogSet () |
| |
| DatabaseSize | GetDatabaseSize (ClientContext &context) override |
| |
| vector< MetadataBlockInfo > | GetMetadataInfo (ClientContext &context) override |
| |
| DUCKDB_API bool | InMemory () override |
| |
| DUCKDB_API string | GetDBPath () override |
| |
| DUCKDB_API bool | IsEncrypted () const override |
| |
| DUCKDB_API string | GetEncryptionCipher () const override |
| |
| DUCKDB_API optional_idx | GetCatalogVersion (ClientContext &context) override |
| |
| optional_ptr< DependencyManager > | GetDependencyManager () override |
| | Returns the dependency manager of this catalog - if the catalog has anye.
|
| |
| | Catalog (AttachedDatabase &db) |
| |
| DUCKDB_API AttachedDatabase & | GetAttached () |
| |
| DUCKDB_API const AttachedDatabase & | GetAttached () const |
| |
| DUCKDB_API DatabaseInstance & | GetDatabase () |
| |
| virtual void | Initialize (optional_ptr< ClientContext > context, bool load_builtin) |
| |
| virtual void | FinalizeLoad (optional_ptr< ClientContext > context) |
| |
| bool | IsSystemCatalog () const |
| |
| bool | IsTemporaryCatalog () const |
| |
| DUCKDB_API const string & | GetName () const |
| | Returns the catalog name - based on how the catalog was attached.
|
| |
| DUCKDB_API idx_t | GetOid () |
| |
| DUCKDB_API CatalogTransaction | GetCatalogTransaction (ClientContext &context) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateSchema (ClientContext &context, CreateSchemaInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateTable (CatalogTransaction transaction, BoundCreateTableInfo &info) |
| | Creates a table in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateTable (ClientContext &context, BoundCreateTableInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateTable (ClientContext &context, unique_ptr< CreateTableInfo > info) |
| | Creates a table in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateTableFunction (CatalogTransaction transaction, CreateTableFunctionInfo &info) |
| | Create a table function in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateTableFunction (ClientContext &context, CreateTableFunctionInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateTableFunction (ClientContext &context, optional_ptr< CreateTableFunctionInfo > info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateCopyFunction (CatalogTransaction transaction, CreateCopyFunctionInfo &info) |
| | Create a copy function in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateCopyFunction (ClientContext &context, CreateCopyFunctionInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreatePragmaFunction (CatalogTransaction transaction, CreatePragmaFunctionInfo &info) |
| | Create a pragma function in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreatePragmaFunction (ClientContext &context, CreatePragmaFunctionInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateFunction (CatalogTransaction transaction, CreateFunctionInfo &info) |
| | Create a scalar or aggregate function in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateFunction (ClientContext &context, CreateFunctionInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateView (CatalogTransaction transaction, CreateViewInfo &info) |
| | Creates a table in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateView (ClientContext &context, CreateViewInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateSequence (CatalogTransaction transaction, CreateSequenceInfo &info) |
| | Creates a sequence in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateSequence (ClientContext &context, CreateSequenceInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateType (CatalogTransaction transaction, CreateTypeInfo &info) |
| | Creates a Enum in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateType (ClientContext &context, CreateTypeInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateCollation (CatalogTransaction transaction, CreateCollationInfo &info) |
| | Creates a collation in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateCollation (ClientContext &context, CreateCollationInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateCoordinateSystem (CatalogTransaction transaction, CreateCoordinateSystemInfo &info) |
| | Creates a coordinate system in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateCoordinateSystem (ClientContext &context, CreateCoordinateSystemInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateIndex (CatalogTransaction transaction, CreateIndexInfo &info) |
| | Creates an index in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateIndex (ClientContext &context, CreateIndexInfo &info) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateTable (CatalogTransaction transaction, SchemaCatalogEntry &schema, BoundCreateTableInfo &info) |
| | Creates a table in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateTableFunction (CatalogTransaction transaction, SchemaCatalogEntry &schema, CreateTableFunctionInfo &info) |
| | Create a table function in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateCopyFunction (CatalogTransaction transaction, SchemaCatalogEntry &schema, CreateCopyFunctionInfo &info) |
| | Create a copy function in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreatePragmaFunction (CatalogTransaction transaction, SchemaCatalogEntry &schema, CreatePragmaFunctionInfo &info) |
| | Create a pragma function in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateFunction (CatalogTransaction transaction, SchemaCatalogEntry &schema, CreateFunctionInfo &info) |
| | Create a scalar or aggregate function in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateView (CatalogTransaction transaction, SchemaCatalogEntry &schema, CreateViewInfo &info) |
| | Creates a view in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateSequence (CatalogTransaction transaction, SchemaCatalogEntry &schema, CreateSequenceInfo &info) |
| | Creates a table in the catalog.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | CreateType (CatalogTransaction transaction, SchemaCatalogEntry &schema, CreateTypeInfo &info) |
| | Creates a enum in the catalog.
|
| |
| DUCKDB_API void | DropEntry (ClientContext &context, DropInfo &info) |
| | Drops an entry from the catalog.
|
| |
| DUCKDB_API SchemaCatalogEntry & | GetSchema (ClientContext &context, const EntryLookupInfo &schema_lookup) |
| | Returns the schema object with the specified name, or throws an exception if it does not exist.
|
| |
| DUCKDB_API optional_ptr< SchemaCatalogEntry > | GetSchema (ClientContext &context, const EntryLookupInfo &schema_lookup, OnEntryNotFound if_not_found) |
| |
| virtual DUCKDB_API bool | CheckAmbiguousCatalogOrSchema (ClientContext &context, const string &schema) |
| | Overloadable method for giving warnings on ambiguous naming id.tab due to a database and schema with name id.
|
| |
| DUCKDB_API SchemaCatalogEntry & | GetSchema (ClientContext &context, const string &schema) |
| |
| DUCKDB_API SchemaCatalogEntry & | GetSchema (CatalogTransaction transaction, const string &schema) |
| |
| DUCKDB_API SchemaCatalogEntry & | GetSchema (CatalogTransaction transaction, const EntryLookupInfo &schema_lookup) |
| |
| DUCKDB_API optional_ptr< SchemaCatalogEntry > | GetSchema (ClientContext &context, const string &schema, OnEntryNotFound if_not_found) |
| |
| DUCKDB_API optional_ptr< SchemaCatalogEntry > | GetSchema (CatalogTransaction transaction, const string &schema, OnEntryNotFound if_not_found) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | GetEntry (ClientContext &context, const string &schema, const EntryLookupInfo &lookup_info, OnEntryNotFound if_not_found) |
| | Gets the "schema.name" entry of the specified type, if entry does not exist behavior depends on OnEntryNotFound.
|
| |
| DUCKDB_API optional_ptr< CatalogEntry > | GetEntry (ClientContext &context, CatalogType catalog_type, const string &schema, const string &name, OnEntryNotFound if_not_found) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | GetEntry (CatalogEntryRetriever &retriever, const string &schema, const EntryLookupInfo &lookup_info, OnEntryNotFound if_not_found) |
| |
| DUCKDB_API CatalogEntry & | GetEntry (ClientContext &context, const string &schema, const EntryLookupInfo &lookup_info) |
| |
| template<class T > |
| optional_ptr< T > | GetEntry (ClientContext &context, const string &schema_name, const string &name, OnEntryNotFound if_not_found, QueryErrorContext error_context=QueryErrorContext()) |
| |
| template<class T > |
| T & | GetEntry (ClientContext &context, const string &schema_name, const string &name, QueryErrorContext error_context=QueryErrorContext()) |
| |
| CatalogEntry & | GetEntry (ClientContext &context, CatalogType catalog_type, const string &schema_name, const string &name) |
| |
| DUCKDB_API optional_ptr< CatalogEntry > | AddFunction (ClientContext &context, CreateFunctionInfo &info) |
| | Append a scalar or aggregate function to the catalog.
|
| |
| DUCKDB_API void | Alter (CatalogTransaction transaction, AlterInfo &info) |
| | Alter an existing entry in the catalog.
|
| |
| DUCKDB_API void | Alter (ClientContext &context, AlterInfo &info) |
| |
|
virtual PhysicalOperator & | PlanDelete (ClientContext &context, PhysicalPlanGenerator &planner, LogicalDelete &op) |
| |
|
virtual PhysicalOperator & | PlanUpdate (ClientContext &context, PhysicalPlanGenerator &planner, LogicalUpdate &op) |
| |
| virtual bool | SupportsTimeTravel () const |
| |
| virtual ErrorData | SupportsCreateTable (BoundCreateTableInfo &info) |
| |
| virtual DUCKDB_API CatalogLookupBehavior | CatalogTypeLookupRule (CatalogType type) const |
| | Whether or not this catalog should search a specific type with the standard priority.
|
| |
| virtual string | GetDefaultSchema () const |
| | Returns the default schema of the catalog.
|
| |
| DUCKDB_API bool | HasDefaultTable () const |
| | Whether this catalog has a default table. Catalogs with a default table can be queries by their catalog name.
|
| |
| DUCKDB_API void | SetDefaultTable (const string &schema, const string &name) |
| |
| DUCKDB_API string | GetDefaultTable () const |
| |
| DUCKDB_API string | GetDefaultTableSchema () const |
| |
| virtual bool | HasConflictingAttachOptions (const string &path, const AttachOptions &options) |
| | Whether attaching a catalog with the given path and attach options would be considered a conflict.
|
| |
| DUCKDB_API vector< reference< SchemaCatalogEntry > > | GetSchemas (ClientContext &context) |
| |
| virtual DUCKDB_API void | OnDetach (ClientContext &context) |
| | Called when the catalog is detached.
|
| |
| CatalogEntryLookup | LookupEntry (CatalogEntryRetriever &retriever, const string &schema, const EntryLookupInfo &lookup_info, OnEntryNotFound if_not_found) |
| | Lookup an entry using TryLookupEntry, throws if entry not found and if_not_found == THROW_EXCEPTION.
|
| |
| template<class TARGET > |
| TARGET & | Cast () |
| |
| template<class TARGET > |
| const TARGET & | Cast () const |
| |
|
| static DUCKDB_API Catalog & | GetSystemCatalog (ClientContext &context) |
| | Get the SystemCatalog from the ClientContext.
|
| |
|
static DUCKDB_API Catalog & | GetSystemCatalog (DatabaseInstance &db) |
| | Get the SystemCatalog from the DatabaseInstance.
|
| |
| static DUCKDB_API Catalog & | GetCatalog (ClientContext &context, const string &catalog_name) |
| | Get the specified Catalog from the ClientContext.
|
| |
| static DUCKDB_API Catalog & | GetCatalog (CatalogEntryRetriever &retriever, const string &catalog_name) |
| | Get the specified Catalog from the ClientContext.
|
| |
|
static DUCKDB_API Catalog & | GetCatalog (DatabaseInstance &db, const string &catalog_name) |
| | Get the specified Catalog from the DatabaseInstance.
|
| |
| static DUCKDB_API optional_ptr< Catalog > | GetCatalogEntry (ClientContext &context, const string &catalog_name) |
| | Gets the specified Catalog from the database if it exists.
|
| |
| static DUCKDB_API optional_ptr< Catalog > | GetCatalogEntry (CatalogEntryRetriever &retriever, const string &catalog_name) |
| | Gets the specified Catalog from the database if it exists.
|
| |
|
static DUCKDB_API Catalog & | GetCatalog (AttachedDatabase &db) |
| | Get the specific Catalog from the AttachedDatabase.
|
| |
| static DUCKDB_API optional_ptr< CatalogEntry > | CreateCollation (CatalogTransaction transaction, SchemaCatalogEntry &schema, CreateCollationInfo &info) |
| | Creates a collation in the catalog.
|
| |
| static DUCKDB_API optional_ptr< CatalogEntry > | CreateCoordinateSystem (CatalogTransaction transaction, SchemaCatalogEntry &schema, CreateCoordinateSystemInfo &info) |
| | Creates a coordinate system in the catalog.
|
| |
| static DUCKDB_API SchemaCatalogEntry & | GetSchema (ClientContext &context, const string &catalog_name, const EntryLookupInfo &schema_lookup) |
| |
| static DUCKDB_API optional_ptr< SchemaCatalogEntry > | GetSchema (ClientContext &context, const string &catalog_name, const EntryLookupInfo &schema_lookup, OnEntryNotFound if_not_found) |
| |
| static DUCKDB_API SchemaCatalogEntry & | GetSchema (ClientContext &context, const string &catalog_name, const string &schema) |
| |
| static DUCKDB_API optional_ptr< SchemaCatalogEntry > | GetSchema (ClientContext &context, const string &catalog_name, const string &schema, OnEntryNotFound if_not_found) |
| |
| static DUCKDB_API optional_ptr< SchemaCatalogEntry > | GetSchema (CatalogEntryRetriever &retriever, const string &catalog_name, const EntryLookupInfo &schema_lookup, OnEntryNotFound if_not_found) |
| |
| static DUCKDB_API optional_ptr< CatalogEntry > | GetEntry (ClientContext &context, const string &catalog, const string &schema, const EntryLookupInfo &lookup_info, OnEntryNotFound if_not_found) |
| |
| static DUCKDB_API optional_ptr< CatalogEntry > | GetEntry (CatalogEntryRetriever &retriever, const string &catalog, const string &schema, const EntryLookupInfo &lookup_info, OnEntryNotFound if_not_found) |
| |
| static DUCKDB_API CatalogEntry & | GetEntry (ClientContext &context, const string &catalog, const string &schema, const EntryLookupInfo &lookup_info) |
| |
| static CatalogEntry & | GetEntry (ClientContext &context, CatalogType catalog_type, const string &catalog_name, const string &schema_name, const string &name) |
| |
| template<class T > |
| static optional_ptr< T > | GetEntry (ClientContext &context, const string &catalog_name, const string &schema_name, const string &name, OnEntryNotFound if_not_found, QueryErrorContext error_context=QueryErrorContext()) |
| |
| template<class T > |
| static T & | GetEntry (ClientContext &context, const string &catalog_name, const string &schema_name, const string &name, QueryErrorContext error_context=QueryErrorContext()) |
| |
| static DUCKDB_API vector< reference< SchemaCatalogEntry > > | GetSchemas (ClientContext &context, const string &catalog_name) |
| |
| static DUCKDB_API vector< reference< SchemaCatalogEntry > > | GetSchemas (CatalogEntryRetriever &retriever, const string &catalog_name) |
| |
| static DUCKDB_API vector< reference< SchemaCatalogEntry > > | GetAllSchemas (ClientContext &context) |
| |
| static vector< reference< CatalogEntry > > | GetAllEntries (ClientContext &context, CatalogType catalog_type) |
| |
| static CatalogException | UnrecognizedConfigurationError (ClientContext &context, const string &name) |
| |
| static String | AutoloadExtensionByConfigName (ClientContext &context, const String &configuration_name) |
| | Autoload the extension required for configuration_name or throw a CatalogException.
|
| |
| static bool | AutoLoadExtensionByCatalogEntry (DatabaseInstance &db, CatalogType type, const string &entry_name) |
| | Autoload the extension required for function_name or throw a CatalogException.
|
| |
| static DUCKDB_API bool | TryAutoLoad (ClientContext &context, const string &extension_name) noexcept |
| |
|
AttachedDatabase & | db |
| | Reference to the database.
|
| |
|
string | default_table |
| | (optionally) a default table to query for SELECT * FROM <catalog_name>;
|
| |
|
string | default_table_schema |
| |