Skip to content

Commit c755ef9

Browse files
committed
Export logging.
1 parent 9a69e40 commit c755ef9

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

embed/bcw2/bcw2.wasm

74 Bytes
Binary file not shown.

embed/exports.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ sqlite3_interrupt
8080
sqlite3_invoke_busy_handler_go
8181
sqlite3_last_insert_rowid
8282
sqlite3_limit
83+
sqlite3_log_go
8384
sqlite3_malloc64
8485
sqlite3_open_v2
8586
sqlite3_overload_function

embed/sqlite3.wasm

74 Bytes
Binary file not shown.

sqlite3/hooks.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ void go_log(void *, int, const char *);
1919
unsigned int go_autovacuum_pages(void *, const char *, unsigned int,
2020
unsigned int, unsigned int);
2121

22+
void sqlite3_log_go(int iErrCode, const char *zMsg) {
23+
sqlite3_log(iErrCode, "%s", zMsg);
24+
}
25+
2226
void sqlite3_progress_handler_go(sqlite3 *db, int n) {
2327
sqlite3_progress_handler(db, n, go_progress_handler, /*arg=*/NULL);
2428
}

0 commit comments

Comments
 (0)