mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
19 lines
419 B
C
19 lines
419 B
C
#include <unistd.h>
|
|
|
|
// Use the default callback, not the Go one we patched in.
|
|
#define sqliteBusyCallback sqliteDefaultBusyCallback
|
|
|
|
// Amalgamation
|
|
#include "sqlite3.c"
|
|
// VFS
|
|
#include "vfs.c"
|
|
|
|
__attribute__((constructor)) void init() { sqlite3_initialize(); }
|
|
|
|
// Ignore these.
|
|
#define sqlite3_enable_load_extension(...)
|
|
#define sqlite3_trace(...)
|
|
#define unlink(...) (0)
|
|
#undef UNUSED_PARAMETER
|
|
|
|
#include "mptest.c" |