Introduce the API for database transactions

This commit is contained in:
Pierre Pronchery 2019-08-31 01:54:49 +02:00
parent f3f7650dfe
commit 19dbe8abb1

View File

@ -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 */