//===----------------------------------------------------------------------===// // DuckDB // // duckdb/storage/table/data_table_info.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/atomic.hpp" #include "duckdb/common/common.hpp" #include "duckdb/storage/table/table_index_list.hpp" namespace duckdb { class DatabaseInstance; class TableIOManager; struct DataTableInfo { DataTableInfo(AttachedDatabase &db, shared_ptr table_io_manager_p, string schema, string table); //! The database instance of the table AttachedDatabase &db; //! The table IO manager shared_ptr table_io_manager; //! The amount of elements in the table. Note that this number signifies the amount of COMMITTED entries in the //! table. It can be inaccurate inside of transactions. More work is needed to properly support that. atomic cardinality; // schema of the table string schema; // name of the table string table; TableIndexList indexes; bool IsTemporary() const; }; } // namespace duckdb