@op-engineering/op-sqlite 15.0.5 → 15.0.6
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/bridge.cpp +15 -9
- package/ios/libsql.xcframework/Info.plist +5 -5
- package/ios/libsql.xcframework/ios-arm64/libsql_experimental.a +0 -0
- package/ios/libsql.xcframework/ios-arm64_x86_64-simulator/libsql_experimental.a +0 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cpp/libsql/bridge.cpp
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#include "bridge.h"
|
|
2
2
|
#include "DumbHostObject.h"
|
|
3
3
|
#include "SmartHostObject.h"
|
|
4
|
+
#include "libsql.h"
|
|
4
5
|
#include "logs.h"
|
|
5
6
|
#include "utils.h"
|
|
6
7
|
#include <filesystem>
|
|
@@ -49,15 +50,20 @@ DB opsqlite_libsql_open_sync(std::string const &name,
|
|
|
49
50
|
libsql_connection_t c;
|
|
50
51
|
const char *err = nullptr;
|
|
51
52
|
|
|
52
|
-
libsql_config config = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
libsql_config config = {
|
|
54
|
+
.db_path = path.c_str(),
|
|
55
|
+
.primary_url = url.c_str(),
|
|
56
|
+
.auth_token = auth_token.c_str(),
|
|
57
|
+
.read_your_writes = '1',
|
|
58
|
+
.encryption_key =
|
|
59
|
+
encryption_key.empty() ? nullptr : encryption_key.c_str(),
|
|
60
|
+
.remote_encryption_key = remote_encryption_key.empty()
|
|
61
|
+
? nullptr
|
|
62
|
+
: remote_encryption_key.c_str(),
|
|
63
|
+
.sync_interval = sync_interval,
|
|
64
|
+
.with_webpki = '1',
|
|
65
|
+
.offline = offline,
|
|
66
|
+
};
|
|
61
67
|
|
|
62
68
|
status = libsql_open_sync_with_config(config, &db, &err);
|
|
63
69
|
if (status != 0) {
|
|
@@ -10,15 +10,18 @@
|
|
|
10
10
|
<key>HeadersPath</key>
|
|
11
11
|
<string>Headers</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
13
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>libsql_experimental.a</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
17
17
|
<array>
|
|
18
18
|
<string>arm64</string>
|
|
19
|
+
<string>x86_64</string>
|
|
19
20
|
</array>
|
|
20
21
|
<key>SupportedPlatform</key>
|
|
21
22
|
<string>ios</string>
|
|
23
|
+
<key>SupportedPlatformVariant</key>
|
|
24
|
+
<string>simulator</string>
|
|
22
25
|
</dict>
|
|
23
26
|
<dict>
|
|
24
27
|
<key>BinaryPath</key>
|
|
@@ -26,18 +29,15 @@
|
|
|
26
29
|
<key>HeadersPath</key>
|
|
27
30
|
<string>Headers</string>
|
|
28
31
|
<key>LibraryIdentifier</key>
|
|
29
|
-
<string>ios-
|
|
32
|
+
<string>ios-arm64</string>
|
|
30
33
|
<key>LibraryPath</key>
|
|
31
34
|
<string>libsql_experimental.a</string>
|
|
32
35
|
<key>SupportedArchitectures</key>
|
|
33
36
|
<array>
|
|
34
37
|
<string>arm64</string>
|
|
35
|
-
<string>x86_64</string>
|
|
36
38
|
</array>
|
|
37
39
|
<key>SupportedPlatform</key>
|
|
38
40
|
<string>ios</string>
|
|
39
|
-
<key>SupportedPlatformVariant</key>
|
|
40
|
-
<string>simulator</string>
|
|
41
41
|
</dict>
|
|
42
42
|
</array>
|
|
43
43
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|