Error logging.

This commit is contained in:
Nuno Cruces
2023-12-27 14:06:44 +00:00
parent e944d5d8e7
commit d56ee4ac2c
9 changed files with 80 additions and 14 deletions

9
sqlite3/log.c Normal file
View File

@@ -0,0 +1,9 @@
#include <stdbool.h>
#include "sqlite3.h"
void go_log(void*, int, const char*);
int sqlite3_config_log_go(bool enable) {
return sqlite3_config(SQLITE_CONFIG_LOG, enable ? go_log : NULL, NULL);
}

View File

@@ -10,6 +10,7 @@
#include "ext/uuid.c"
// Bindings
#include "func.c"
#include "log.c"
#include "pointer.c"
#include "progress.c"
#include "time.c"