mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
10 lines
347 B
C
10 lines
347 B
C
#include <sqlite3.h>
|
|
|
|
typedef void(*errorLogCallback)(void *pArg, int iErrCode, const char *zMsg);
|
|
|
|
// Wrapper around sqlite3_config(SQLITE_CONFIG_LOG, ...) which is a variadic
|
|
// function that can't be used from Swift.
|
|
static inline void registerErrorLogCallback(errorLogCallback callback) {
|
|
sqlite3_config(SQLITE_CONFIG_LOG, callback, 0);
|
|
}
|