libsql-client-ts icon indicating copy to clipboard operation
libsql-client-ts copied to clipboard

Sync interval option doesn't work (mismatch with name in libsql Database constructor)

Open Hedrekao opened this issue 1 year ago • 0 comments

When trying to create client with sync interval, in reality automatic periodic syncs never happen, due to the fact that in sqlite3.js file, following object is passed to Database constructor:

image However, constructor in file index.js from libsql package expects field syncPeriod instead of syncInterval

image

Therefore value of syncPeriod is set to 0 and db doesn't do any automatic periodic syncs.

Hedrekao avatar Apr 16 '24 20:04 Hedrekao