ensure proper table creation in session::create_schema including foreign key constraints

This commit is contained in:
Sascha Kühl
2025-07-17 15:56:15 +02:00
parent 581b93c5ea
commit fa393a1e30
16 changed files with 186 additions and 221 deletions
+15 -2
View File
@@ -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.
*/