1
0
Fork 0
forked from blue/lmdbal

some more primitive specializations, counting rows, dropping tables, tests

This commit is contained in:
Blue 2022-09-17 15:31:58 +03:00
parent 047f96b54a
commit 2f34fa69e8
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
22 changed files with 667 additions and 28 deletions

View file

@ -43,23 +43,23 @@ private:
class DataBase::Closed : public DataBase::Exception {
public:
Closed(const std::string& p_operation, const std::string& dbName, const std::string& tableName);
Closed(const std::string& p_operation, const std::string& dbName, const std::optional<std::string>& tableName = std::nullopt);
std::string getMessage() const;
private:
std::string operation;
std::string dbName;
std::string tableName;
std::optional<std::string> tableName;
};
class DataBase::Opened : public DataBase::Exception {
public:
Opened(const std::string& dbName, const std::string& tableName);
Opened(const std::string& dbName, const std::string& action);
std::string getMessage() const;
private:
std::string dbName;
std::string tableName;
std::string action;
};
class DataBase::NotFound : public DataBase::Exception {