forked from blue/lmdbal
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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue