feat: add reporter
- add general reporter. - fix various compile error.
This commit is contained in:
@@ -19,18 +19,6 @@ namespace VSW::Materializer::Database {
|
||||
/// @brief Check whether this database is ready for use.
|
||||
bool IsValid() const;
|
||||
|
||||
protected:
|
||||
/**
|
||||
* @brief User implemented function called after connect to the database before transition.
|
||||
* @return True if success, otherwise false.
|
||||
*/
|
||||
virtual bool PostOpen() = 0;
|
||||
/**
|
||||
* @brief User implemented function called after transition before disconnect from database.
|
||||
* @return True if success, otherwise false.
|
||||
*/
|
||||
virtual bool PreClose() = 0;
|
||||
|
||||
protected:
|
||||
/// @brief Subclass used for creating stmt with cache feature.
|
||||
sqlite3_stmt* GetStmt(const char* stmt_str);
|
||||
@@ -51,10 +39,6 @@ namespace VSW::Materializer::Database {
|
||||
ScriptDatabase(ScriptDatabase&&) = delete;
|
||||
ScriptDatabase& operator=(ScriptDatabase&&) = delete;
|
||||
|
||||
protected:
|
||||
virtual bool PostOpen() override;
|
||||
virtual bool PreClose() override;
|
||||
|
||||
public:
|
||||
void Write(const DataTypes::Script::Table_script& data);
|
||||
void Write(const DataTypes::Script::Table_behavior& data);
|
||||
@@ -81,10 +65,6 @@ namespace VSW::Materializer::Database {
|
||||
DocumentDatabase(DocumentDatabase&&) = delete;
|
||||
DocumentDatabase& operator=(DocumentDatabase&&) = delete;
|
||||
|
||||
protected:
|
||||
virtual bool PostOpen() override;
|
||||
virtual bool PreClose() override;
|
||||
|
||||
public:
|
||||
void Write(const DataTypes::Document::Table_msg& data);
|
||||
void Write(const DataTypes::Document::Table_obj& data);
|
||||
@@ -99,10 +79,6 @@ namespace VSW::Materializer::Database {
|
||||
EnvironmentDatabase(EnvironmentDatabase&&) = delete;
|
||||
EnvironmentDatabase& operator=(EnvironmentDatabase&&) = delete;
|
||||
|
||||
protected:
|
||||
virtual bool PostOpen() override;
|
||||
virtual bool PreClose() override;
|
||||
|
||||
public:
|
||||
void Write(const DataTypes::Environment::Table_op& data);
|
||||
void Write(const DataTypes::Environment::Table_param& data);
|
||||
|
||||
Reference in New Issue
Block a user