Skip to content

Commit 729a743

Browse files
Marcus PousetteMarcus Pousette
authored andcommitted
fix(sqlite): add optimistic local commit protocol
1 parent e4c5386 commit 729a743

4 files changed

Lines changed: 513 additions & 144 deletions

File tree

packages/treecrdt-sqlite-ext/src/extension/functions.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ pub extern "C" fn sqlite3_treecrdt_init(
252252
sqlite_create_function_v2(
253253
db,
254254
name.as_ptr(),
255-
6,
255+
-1,
256256
SQLITE_UTF8 as c_int,
257257
null_mut(),
258258
Some(treecrdt_local_insert),
@@ -266,7 +266,7 @@ pub extern "C" fn sqlite3_treecrdt_init(
266266
sqlite_create_function_v2(
267267
db,
268268
name.as_ptr(),
269-
5,
269+
-1,
270270
SQLITE_UTF8 as c_int,
271271
null_mut(),
272272
Some(treecrdt_local_move),
@@ -280,7 +280,7 @@ pub extern "C" fn sqlite3_treecrdt_init(
280280
sqlite_create_function_v2(
281281
db,
282282
name.as_ptr(),
283-
2,
283+
-1,
284284
SQLITE_UTF8 as c_int,
285285
null_mut(),
286286
Some(treecrdt_local_delete),
@@ -294,7 +294,7 @@ pub extern "C" fn sqlite3_treecrdt_init(
294294
sqlite_create_function_v2(
295295
db,
296296
name.as_ptr(),
297-
3,
297+
-1,
298298
SQLITE_UTF8 as c_int,
299299
null_mut(),
300300
Some(treecrdt_local_payload),

0 commit comments

Comments
 (0)