18 #include "scanner/engine/metadata.h" 35 bool exists(
const std::string& table_name)
const;
37 bool exists(i32 table_id)
const;
39 bool has(
const std::string& table_name)
const;
43 void prefetch(
const std::vector<std::string>& table_names);
45 void write_megafile();
48 void memoized_read(
const std::string& table_name)
const;
50 void memoized_read(i32 table_id)
const;
52 storehouse::StorageBackend* storage_;
54 mutable std::mutex lock_;
55 mutable std::unordered_map<i32, TableMetadata> cache_;
Definition: database.cpp:36