@op-engineering/op-sqlite 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/jniLibs/arm64-v8a/libsql_experimental.a +0 -0
- package/android/jniLibs/armeabi-v7a/libsql_experimental.a +0 -0
- package/android/jniLibs/x86/libsql_experimental.a +0 -0
- package/android/jniLibs/x86_64/libsql_experimental.a +0 -0
- package/cpp/libsql/libsql.h +7 -0
- package/ios/libsql.xcframework/ios-arm64/Headers/libsql.h +7 -0
- package/ios/libsql.xcframework/ios-arm64/libsql_experimental.a +0 -0
- package/ios/libsql.xcframework/ios-arm64_x86_64-simulator/Headers/libsql.h +7 -0
- package/ios/libsql.xcframework/ios-arm64_x86_64-simulator/libsql_experimental.a +0 -0
- package/package.json +1 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cpp/libsql/libsql.h
CHANGED
|
@@ -27,6 +27,11 @@ typedef struct libsql_stmt libsql_stmt;
|
|
|
27
27
|
|
|
28
28
|
typedef const libsql_database *libsql_database_t;
|
|
29
29
|
|
|
30
|
+
typedef struct {
|
|
31
|
+
int frame_no;
|
|
32
|
+
int frames_synced;
|
|
33
|
+
} replicated;
|
|
34
|
+
|
|
30
35
|
typedef struct {
|
|
31
36
|
const char *db_path;
|
|
32
37
|
const char *primary_url;
|
|
@@ -58,6 +63,8 @@ extern "C" {
|
|
|
58
63
|
|
|
59
64
|
int libsql_sync(libsql_database_t db, const char **out_err_msg);
|
|
60
65
|
|
|
66
|
+
int libsql_sync2(libsql_database_t db, replicated *out_replicated, const char **out_err_msg);
|
|
67
|
+
|
|
61
68
|
int libsql_open_sync(const char *db_path,
|
|
62
69
|
const char *primary_url,
|
|
63
70
|
const char *auth_token,
|
|
@@ -27,6 +27,11 @@ typedef struct libsql_stmt libsql_stmt;
|
|
|
27
27
|
|
|
28
28
|
typedef const libsql_database *libsql_database_t;
|
|
29
29
|
|
|
30
|
+
typedef struct {
|
|
31
|
+
int frame_no;
|
|
32
|
+
int frames_synced;
|
|
33
|
+
} replicated;
|
|
34
|
+
|
|
30
35
|
typedef struct {
|
|
31
36
|
const char *db_path;
|
|
32
37
|
const char *primary_url;
|
|
@@ -58,6 +63,8 @@ extern "C" {
|
|
|
58
63
|
|
|
59
64
|
int libsql_sync(libsql_database_t db, const char **out_err_msg);
|
|
60
65
|
|
|
66
|
+
int libsql_sync2(libsql_database_t db, replicated *out_replicated, const char **out_err_msg);
|
|
67
|
+
|
|
61
68
|
int libsql_open_sync(const char *db_path,
|
|
62
69
|
const char *primary_url,
|
|
63
70
|
const char *auth_token,
|
|
Binary file
|
|
@@ -27,6 +27,11 @@ typedef struct libsql_stmt libsql_stmt;
|
|
|
27
27
|
|
|
28
28
|
typedef const libsql_database *libsql_database_t;
|
|
29
29
|
|
|
30
|
+
typedef struct {
|
|
31
|
+
int frame_no;
|
|
32
|
+
int frames_synced;
|
|
33
|
+
} replicated;
|
|
34
|
+
|
|
30
35
|
typedef struct {
|
|
31
36
|
const char *db_path;
|
|
32
37
|
const char *primary_url;
|
|
@@ -58,6 +63,8 @@ extern "C" {
|
|
|
58
63
|
|
|
59
64
|
int libsql_sync(libsql_database_t db, const char **out_err_msg);
|
|
60
65
|
|
|
66
|
+
int libsql_sync2(libsql_database_t db, replicated *out_replicated, const char **out_err_msg);
|
|
67
|
+
|
|
61
68
|
int libsql_open_sync(const char *db_path,
|
|
62
69
|
const char *primary_url,
|
|
63
70
|
const char *auth_token,
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@op-engineering/op-sqlite",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Next generation SQLite for React Native",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
28
|
"prepare": "bob build",
|
|
29
29
|
"pods": "cd example && yarn pods",
|
|
30
|
-
"release": "cd scripts && ./release.sh",
|
|
31
30
|
"clang-format-check": "clang-format -i cpp/*.cpp cpp/*.h"
|
|
32
31
|
},
|
|
33
32
|
"keywords": [
|