From 19dbe8abb1561ce8fa0107d5aea3e52c7937493d Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 31 Aug 2019 01:54:49 +0200 Subject: [PATCH] Introduce the API for database transactions --- include/Database/database.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/Database/database.h b/include/Database/database.h index af7111f..1e8f844 100644 --- a/include/Database/database.h +++ b/include/Database/database.h @@ -52,4 +52,8 @@ int64_t database_get_last_id(Database * database); int database_query(Database * database, char const * query, DatabaseCallback callback, void * data); +int database_transaction_begin(Database * database); +int database_transaction_commit(Database * database); +int database_transaction_rollback(Database * database); + #endif /* !LIBDATABASE_DATABASE_DATABASE_H */