|
|
| AttachedDatabase (DatabaseInstance &db, AttachedDatabaseType type=AttachedDatabaseType::SYSTEM_DATABASE) |
| | Create the built-in system database (without storage).
|
| |
|
| AttachedDatabase (DatabaseInstance &db, Catalog &catalog, string name, string file_path, AttachOptions &options) |
| | Create an attached database instance with the specified name and storage.
|
| |
|
| AttachedDatabase (DatabaseInstance &db, Catalog &catalog, StorageExtension &ext, ClientContext &context, string name, AttachInfo &info, AttachOptions &options) |
| | Create an attached database instance with the specified storage extension.
|
| |
|
void | Initialize (optional_ptr< ClientContext > context=nullptr) |
| | Initializes the catalog and storage of the attached database.
|
| |
|
void | FinalizeLoad (optional_ptr< ClientContext > context) |
| |
|
void | Close (const DatabaseCloseAction action) |
| | Close the database before shutting it down.
|
| |
| Catalog & | ParentCatalog () override |
| |
| const Catalog & | ParentCatalog () const override |
| |
|
bool | HasStorageManager () const |
| |
|
StorageManager & | GetStorageManager () |
| |
|
const StorageManager & | GetStorageManager () const |
| |
|
Catalog & | GetCatalog () |
| |
|
TransactionManager & | GetTransactionManager () |
| |
| DatabaseInstance & | GetDatabase () |
| |
| optional_ptr< StorageExtension > | GetStorageExtension () |
| |
| const string & | GetName () const |
| |
| void | SetName (const string &new_name) |
| |
|
bool | IsSystem () const |
| |
|
bool | IsTemporary () const |
| |
|
bool | IsReadOnly () const |
| |
|
bool | IsInitialDatabase () const |
| |
|
void | SetInitialDatabase () |
| |
|
void | SetReadOnlyDatabase () |
| |
|
void | OnDetach (ClientContext &context) |
| |
| RecoveryMode | GetRecoveryMode () const |
| |
| AttachVisibility | GetVisibility () const |
| |
| const unordered_map< string, Value > & | GetAttachOptions () const |
| |
|
string | StoredPath () const |
| |
| | CatalogEntry (CatalogType type, Catalog &catalog, string name) |
| |
| | CatalogEntry (CatalogType type, string name, idx_t oid) |
| |
| virtual unique_ptr< CatalogEntry > | AlterEntry (ClientContext &context, AlterInfo &info) |
| |
| virtual unique_ptr< CatalogEntry > | AlterEntry (CatalogTransaction transaction, AlterInfo &info) |
| |
| virtual void | UndoAlter (ClientContext &context, AlterInfo &info) |
| |
| virtual void | Rollback (CatalogEntry &prev_entry) |
| |
| virtual void | OnDrop () |
| |
| virtual unique_ptr< CatalogEntry > | Copy (ClientContext &context) const |
| |
| virtual unique_ptr< CreateInfo > | GetInfo () const |
| |
| virtual void | SetAsRoot () |
| | Sets the CatalogEntry as the new root entry (i.e. the newest entry)
|
| |
| virtual string | ToSQL () const |
| | Convert the catalog entry to a SQL string that can be used to re-construct the catalog entry.
|
| |
| virtual SchemaCatalogEntry & | ParentSchema () |
| |
| virtual const SchemaCatalogEntry & | ParentSchema () const |
| |
| virtual void | Verify (Catalog &catalog) |
| |
| void | Serialize (Serializer &serializer) const |
| |
| void | SetChild (unique_ptr< CatalogEntry > child) |
| |
| unique_ptr< CatalogEntry > | TakeChild () |
| |
| bool | HasChild () const |
| |
| bool | HasParent () const |
| |
| CatalogEntry & | Child () |
| |
| CatalogEntry & | Parent () |
| |
|
const CatalogEntry & | Parent () const |
| |
| template<class TARGET > |
| TARGET & | Cast () |
| |
| template<class TARGET > |
| const TARGET & | Cast () const |
| |
| shared_ptr< AttachedDatabase > | shared_from_this () |
| |
| shared_ptr< AttachedDatabase const > | shared_from_this () const |
| |
The AttachedDatabase represents an attached database instance.