Skip to content

Commit 9c2b781

Browse files
use internal static PowerSync initialization
1 parent a3dd19b commit 9c2b781

File tree

11 files changed

+20
-21
lines changed

11 files changed

+20
-21
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ CFILES = \
1818
libvfs.c \
1919
$(CFILES_EXTRA)
2020

21-
POWERSYNC_CFILES = \
22-
setup_powersync.c
21+
22+
POWERSYNC_CFILES = $(notdir $(wildcard powersync-static/*.c))
2323

2424
JSFILES = \
2525
src/libauthorizer.js \

demo/demo-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ maybeReset().then(async () => {
119119
extScope.powersync_init_static();
120120
} else {
121121
// This is not part of the Sqlite3 API
122-
module.ccall('setup_powersync', 'int', []);
122+
module.ccall('powersync_init_static', 'int', []);
123123
}
124124

125125
if (config.vfsModule) {

dist/wa-sqlite-async.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/wa-sqlite-async.wasm

10 Bytes
Binary file not shown.

dist/wa-sqlite-jspi.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/wa-sqlite-jspi.wasm

16 Bytes
Binary file not shown.

dist/wa-sqlite.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/wa-sqlite.wasm

10 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["_setup_powersync"]
1+
["_powersync_init_static"]

powersync-static/setup_powersync.c

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)