mirror of
https://github.com/getml/sqlgen.git
synced 2026-02-17 22:28:34 -06:00
Added the .commit() message
This commit is contained in:
@@ -17,7 +17,11 @@ namespace sqlgen {
|
||||
/// Abstract base class to be implemented by the different
|
||||
/// database connections.
|
||||
struct Connection {
|
||||
/// Executes a statement.
|
||||
/// Commits a statement,
|
||||
virtual Result<Nothing> commit() = 0;
|
||||
|
||||
/// Executes a statement. Note that in order for the statement to take effect,
|
||||
/// you must call .commit() afterwards.
|
||||
/// TODO: Abstract away the different statements using rfl::TaggedUnion.
|
||||
virtual Result<Nothing> execute(const CreateTable& _stmt) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user