ensure proper table creation in session::create_schema including foreign key constraints
This commit is contained in:
@@ -35,7 +35,7 @@ public:
|
||||
virtual void on_close() = 0;
|
||||
|
||||
/**
|
||||
* Is called when a sql statement is going to
|
||||
* Is called when a SQL statement is going to
|
||||
* be executed
|
||||
*
|
||||
* @param stmt SQL statement to be executed
|
||||
@@ -43,7 +43,15 @@ public:
|
||||
virtual void on_execute(const std::string &stmt) = 0;
|
||||
|
||||
/**
|
||||
* Is called when a sql statement is going to
|
||||
* Is called when a SQL select statement is going to
|
||||
* be executed
|
||||
*
|
||||
* @param stmt The SQL select-statement to be executed
|
||||
*/
|
||||
virtual void on_fetch(const std::string &stmt) = 0;
|
||||
|
||||
/**
|
||||
* Is called when a SQL statement is going to
|
||||
* be prepared
|
||||
*
|
||||
* @param stmt SQL statement to be prepared
|
||||
@@ -75,6 +83,11 @@ public:
|
||||
*/
|
||||
void on_execute(const std::string &) override { }
|
||||
|
||||
/**
|
||||
* No logging on a select-statement.
|
||||
*/
|
||||
void on_fetch( const std::string& stmt ) override { }
|
||||
|
||||
/**
|
||||
* No logging on preparing a statement.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user