mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Error logging.
This commit is contained in:
9
sqlite3/log.c
Normal file
9
sqlite3/log.c
Normal 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);
|
||||
}
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "ext/uuid.c"
|
||||
// Bindings
|
||||
#include "func.c"
|
||||
#include "log.c"
|
||||
#include "pointer.c"
|
||||
#include "progress.c"
|
||||
#include "time.c"
|
||||
|
||||
Reference in New Issue
Block a user