some more primitive specializations, counting rows, dropping tables, tests
This commit is contained in:
parent
047f96b54a
commit
2f34fa69e8
22 changed files with 667 additions and 28 deletions
|
@ -42,6 +42,7 @@ public:
|
|||
bool ready() const;
|
||||
bool removeDirectory();
|
||||
QString getName() const;
|
||||
void drop();
|
||||
|
||||
template <class K, class V>
|
||||
Table<K, V>* addTable(const std::string& name);
|
||||
|
@ -72,7 +73,7 @@ private:
|
|||
template <class K, class V>
|
||||
DataBase::Table<K, V>* DataBase::addTable(const std::string& p_name) {
|
||||
if (opened) {
|
||||
throw Opened(name, p_name);
|
||||
throw Opened(name, "add table " + p_name);
|
||||
}
|
||||
DataBase::Table<K, V>* table = new DataBase::Table<K, V>(p_name, this);
|
||||
tables.insert(std::make_pair(p_name, (_Table*)table));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue