@op-engineering/op-sqlite 0.0.0-resolution-test

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.
Files changed (99) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +31 -0
  3. package/android/.project +17 -0
  4. package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
  5. package/android/CMakeLists.txt +141 -0
  6. package/android/build.gradle +266 -0
  7. package/android/c_sources/tokenizers.cpp +88 -0
  8. package/android/c_sources/tokenizers.h +15 -0
  9. package/android/cpp-adapter.cpp +46 -0
  10. package/android/gradle.properties +1 -0
  11. package/android/jniLibs/arm64-v8a/libsql_experimental.a +0 -0
  12. package/android/jniLibs/armeabi-v7a/libsql_experimental.a +0 -0
  13. package/android/jniLibs/x86/libsql_experimental.a +0 -0
  14. package/android/jniLibs/x86_64/libsql_experimental.a +0 -0
  15. package/android/src/main/AndroidManifest.xml +1 -0
  16. package/android/src/main/java/com/op/sqlite/OPSQLiteBridge.kt +37 -0
  17. package/android/src/main/java/com/op/sqlite/OPSQLiteModule.kt +119 -0
  18. package/android/src/main/java/com/op/sqlite/OPSQLitePackage.kt +18 -0
  19. package/android/src/main/jniLibs/arm64-v8a/libcrsqlite.so +0 -0
  20. package/android/src/main/jniLibs/arm64-v8a/libsqlite_vec.so +0 -0
  21. package/android/src/main/jniLibs/armeabi-v7a/libcrsqlite.so +0 -0
  22. package/android/src/main/jniLibs/armeabi-v7a/libsqlite_vec.so +0 -0
  23. package/android/src/main/jniLibs/x86/libcrsqlite.so +0 -0
  24. package/android/src/main/jniLibs/x86/libsqlite_vec.so +0 -0
  25. package/android/src/main/jniLibs/x86_64/libcrsqlite.so +0 -0
  26. package/android/src/main/jniLibs/x86_64/libsqlite_vec.so +0 -0
  27. package/android/src/paper/java/com/op/sqlite/NativeOPSQLiteSpec.java +77 -0
  28. package/cpp/DBHostObject.cpp +852 -0
  29. package/cpp/DBHostObject.h +99 -0
  30. package/cpp/DumbHostObject.cpp +72 -0
  31. package/cpp/DumbHostObject.h +36 -0
  32. package/cpp/OPThreadPool.cpp +120 -0
  33. package/cpp/OPThreadPool.h +44 -0
  34. package/cpp/PreparedStatementHostObject.cpp +151 -0
  35. package/cpp/PreparedStatementHostObject.h +59 -0
  36. package/cpp/SmartHostObject.cpp +34 -0
  37. package/cpp/SmartHostObject.h +24 -0
  38. package/cpp/bindings.cpp +182 -0
  39. package/cpp/bindings.h +19 -0
  40. package/cpp/bridge.cpp +873 -0
  41. package/cpp/bridge.h +80 -0
  42. package/cpp/libsql/bridge.cpp +738 -0
  43. package/cpp/libsql/bridge.h +85 -0
  44. package/cpp/libsql/libsql.h +172 -0
  45. package/cpp/logs.h +40 -0
  46. package/cpp/macros.h +15 -0
  47. package/cpp/sqlcipher/sqlite3.c +262970 -0
  48. package/cpp/sqlcipher/sqlite3.h +13485 -0
  49. package/cpp/sqlite3.c +261454 -0
  50. package/cpp/sqlite3.h +13715 -0
  51. package/cpp/types.h +33 -0
  52. package/cpp/utils.cpp +327 -0
  53. package/cpp/utils.h +47 -0
  54. package/generate_tokenizers_header_file.rb +29 -0
  55. package/ios/OPSQLite.h +7 -0
  56. package/ios/OPSQLite.mm +157 -0
  57. package/ios/OPSQLite.xcodeproj/project.pbxproj +275 -0
  58. package/ios/crsqlite.xcframework/Info.plist +46 -0
  59. package/ios/crsqlite.xcframework/ios-arm64/crsqlite.framework/Info.plist +24 -0
  60. package/ios/crsqlite.xcframework/ios-arm64/crsqlite.framework/crsqlite +0 -0
  61. package/ios/crsqlite.xcframework/ios-arm64_x86_64-simulator/crsqlite.framework/Info.plist +24 -0
  62. package/ios/crsqlite.xcframework/ios-arm64_x86_64-simulator/crsqlite.framework/crsqlite +0 -0
  63. package/ios/libsql.xcframework/Info.plist +48 -0
  64. package/ios/libsql.xcframework/ios-arm64/Headers/libsql.h +172 -0
  65. package/ios/libsql.xcframework/ios-arm64/libsql_experimental.a +0 -0
  66. package/ios/libsql.xcframework/ios-arm64_x86_64-simulator/Headers/libsql.h +172 -0
  67. package/ios/libsql.xcframework/ios-arm64_x86_64-simulator/libsql_experimental.a +0 -0
  68. package/ios/sqlitevec.xcframework/Info.plist +71 -0
  69. package/ios/sqlitevec.xcframework/ios-arm64/sqlitevec.framework/Info.plist +24 -0
  70. package/ios/sqlitevec.xcframework/ios-arm64/sqlitevec.framework/sqlitevec +0 -0
  71. package/ios/sqlitevec.xcframework/ios-arm64_x86_64-simulator/sqlitevec.framework/Info.plist +24 -0
  72. package/ios/sqlitevec.xcframework/ios-arm64_x86_64-simulator/sqlitevec.framework/sqlitevec +0 -0
  73. package/ios/sqlitevec.xcframework/tvos-arm64/sqlitevec.framework/Info.plist +24 -0
  74. package/ios/sqlitevec.xcframework/tvos-arm64/sqlitevec.framework/sqlitevec +0 -0
  75. package/ios/sqlitevec.xcframework/tvos-arm64_x86_64-simulator/sqlitevec.framework/Info.plist +24 -0
  76. package/ios/sqlitevec.xcframework/tvos-arm64_x86_64-simulator/sqlitevec.framework/sqlitevec +0 -0
  77. package/lib/commonjs/NativeOPSQLite.js +9 -0
  78. package/lib/commonjs/NativeOPSQLite.js.map +1 -0
  79. package/lib/commonjs/Storage.js +60 -0
  80. package/lib/commonjs/Storage.js.map +1 -0
  81. package/lib/commonjs/index.js +365 -0
  82. package/lib/commonjs/index.js.map +1 -0
  83. package/lib/module/NativeOPSQLite.js +3 -0
  84. package/lib/module/NativeOPSQLite.js.map +1 -0
  85. package/lib/module/Storage.js +53 -0
  86. package/lib/module/Storage.js.map +1 -0
  87. package/lib/module/index.js +340 -0
  88. package/lib/module/index.js.map +1 -0
  89. package/lib/typescript/src/NativeOPSQLite.d.ts +15 -0
  90. package/lib/typescript/src/NativeOPSQLite.d.ts.map +1 -0
  91. package/lib/typescript/src/Storage.d.ts +23 -0
  92. package/lib/typescript/src/Storage.d.ts.map +1 -0
  93. package/lib/typescript/src/index.d.ts +319 -0
  94. package/lib/typescript/src/index.d.ts.map +1 -0
  95. package/op-sqlite.podspec +212 -0
  96. package/package.json +85 -0
  97. package/src/NativeOPSQLite.ts +17 -0
  98. package/src/Storage.ts +85 -0
  99. package/src/index.ts +722 -0
@@ -0,0 +1,275 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 5E555C0D2413F4C50049A1A2 /* OPSQLite.mm in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* OPSQLite.mm */; };
11
+ /* End PBXBuildFile section */
12
+
13
+ /* Begin PBXCopyFilesBuildPhase section */
14
+ 58B511D91A9E6C8500147676 /* CopyFiles */ = {
15
+ isa = PBXCopyFilesBuildPhase;
16
+ buildActionMask = 2147483647;
17
+ dstPath = "include/$(PRODUCT_NAME)";
18
+ dstSubfolderSpec = 16;
19
+ files = (
20
+ );
21
+ runOnlyForDeploymentPostprocessing = 0;
22
+ };
23
+ /* End PBXCopyFilesBuildPhase section */
24
+
25
+ /* Begin PBXFileReference section */
26
+ 134814201AA4EA6300B7C361 /* libOPSQLite.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libOPSQLite.a; sourceTree = BUILT_PRODUCTS_DIR; };
27
+ B3E7B5891CC2AC0600A0062D /* OPSQLite.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = OPSQLite.mm; sourceTree = "<group>"; };
28
+ /* End PBXFileReference section */
29
+
30
+ /* Begin PBXFrameworksBuildPhase section */
31
+ 58B511D81A9E6C8500147676 /* Frameworks */ = {
32
+ isa = PBXFrameworksBuildPhase;
33
+ buildActionMask = 2147483647;
34
+ files = (
35
+ );
36
+ runOnlyForDeploymentPostprocessing = 0;
37
+ };
38
+ /* End PBXFrameworksBuildPhase section */
39
+
40
+ /* Begin PBXGroup section */
41
+ 134814211AA4EA7D00B7C361 /* Products */ = {
42
+ isa = PBXGroup;
43
+ children = (
44
+ 134814201AA4EA6300B7C361 /* libOPSQLite.a */,
45
+ );
46
+ name = Products;
47
+ sourceTree = "<group>";
48
+ };
49
+ 58B511D21A9E6C8500147676 = {
50
+ isa = PBXGroup;
51
+ children = (
52
+ B3E7B5891CC2AC0600A0062D /* OPSQLite.mm */,
53
+ 134814211AA4EA7D00B7C361 /* Products */,
54
+ );
55
+ sourceTree = "<group>";
56
+ };
57
+ /* End PBXGroup section */
58
+
59
+ /* Begin PBXNativeTarget section */
60
+ 58B511DA1A9E6C8500147676 /* OPSQLite */ = {
61
+ isa = PBXNativeTarget;
62
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "OPSQLite" */;
63
+ buildPhases = (
64
+ 58B511D71A9E6C8500147676 /* Sources */,
65
+ 58B511D81A9E6C8500147676 /* Frameworks */,
66
+ 58B511D91A9E6C8500147676 /* CopyFiles */,
67
+ );
68
+ buildRules = (
69
+ );
70
+ dependencies = (
71
+ );
72
+ name = OPSQLite;
73
+ productName = RCTDataManager;
74
+ productReference = 134814201AA4EA6300B7C361 /* libOPSQLite.a */;
75
+ productType = "com.apple.product-type.library.static";
76
+ };
77
+ /* End PBXNativeTarget section */
78
+
79
+ /* Begin PBXProject section */
80
+ 58B511D31A9E6C8500147676 /* Project object */ = {
81
+ isa = PBXProject;
82
+ attributes = {
83
+ LastUpgradeCheck = 0920;
84
+ ORGANIZATIONNAME = Facebook;
85
+ TargetAttributes = {
86
+ 58B511DA1A9E6C8500147676 = {
87
+ CreatedOnToolsVersion = 6.1.1;
88
+ };
89
+ };
90
+ };
91
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "OPSQLite" */;
92
+ compatibilityVersion = "Xcode 3.2";
93
+ developmentRegion = English;
94
+ hasScannedForEncodings = 0;
95
+ knownRegions = (
96
+ English,
97
+ en,
98
+ );
99
+ mainGroup = 58B511D21A9E6C8500147676;
100
+ productRefGroup = 58B511D21A9E6C8500147676;
101
+ projectDirPath = "";
102
+ projectRoot = "";
103
+ targets = (
104
+ 58B511DA1A9E6C8500147676 /* OPSQLite */,
105
+ );
106
+ };
107
+ /* End PBXProject section */
108
+
109
+ /* Begin PBXSourcesBuildPhase section */
110
+ 58B511D71A9E6C8500147676 /* Sources */ = {
111
+ isa = PBXSourcesBuildPhase;
112
+ buildActionMask = 2147483647;
113
+ files = (
114
+ 5E555C0D2413F4C50049A1A2 /* OPSQLite.mm in Sources */,
115
+ );
116
+ runOnlyForDeploymentPostprocessing = 0;
117
+ };
118
+ /* End PBXSourcesBuildPhase section */
119
+
120
+ /* Begin XCBuildConfiguration section */
121
+ 58B511ED1A9E6C8500147676 /* Debug */ = {
122
+ isa = XCBuildConfiguration;
123
+ buildSettings = {
124
+ ALWAYS_SEARCH_USER_PATHS = NO;
125
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
126
+ CLANG_CXX_LIBRARY = "libc++";
127
+ CLANG_ENABLE_MODULES = YES;
128
+ CLANG_ENABLE_OBJC_ARC = YES;
129
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
130
+ CLANG_WARN_BOOL_CONVERSION = YES;
131
+ CLANG_WARN_COMMA = YES;
132
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
133
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
134
+ CLANG_WARN_EMPTY_BODY = YES;
135
+ CLANG_WARN_ENUM_CONVERSION = YES;
136
+ CLANG_WARN_INFINITE_RECURSION = YES;
137
+ CLANG_WARN_INT_CONVERSION = YES;
138
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
139
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
140
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
141
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
142
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
143
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
144
+ CLANG_WARN_UNREACHABLE_CODE = YES;
145
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
146
+ COPY_PHASE_STRIP = NO;
147
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
148
+ ENABLE_TESTABILITY = YES;
149
+ GCC_C_LANGUAGE_STANDARD = gnu99;
150
+ GCC_DYNAMIC_NO_PIC = NO;
151
+ GCC_NO_COMMON_BLOCKS = YES;
152
+ GCC_OPTIMIZATION_LEVEL = 0;
153
+ GCC_PREPROCESSOR_DEFINITIONS = (
154
+ "DEBUG=1",
155
+ "$(inherited)",
156
+ );
157
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
158
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
159
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
160
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
161
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
162
+ GCC_WARN_UNUSED_FUNCTION = YES;
163
+ GCC_WARN_UNUSED_VARIABLE = YES;
164
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
165
+ MTL_ENABLE_DEBUG_INFO = YES;
166
+ ONLY_ACTIVE_ARCH = YES;
167
+ SDKROOT = iphoneos;
168
+ };
169
+ name = Debug;
170
+ };
171
+ 58B511EE1A9E6C8500147676 /* Release */ = {
172
+ isa = XCBuildConfiguration;
173
+ buildSettings = {
174
+ ALWAYS_SEARCH_USER_PATHS = NO;
175
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
176
+ CLANG_CXX_LIBRARY = "libc++";
177
+ CLANG_ENABLE_MODULES = YES;
178
+ CLANG_ENABLE_OBJC_ARC = YES;
179
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
180
+ CLANG_WARN_BOOL_CONVERSION = YES;
181
+ CLANG_WARN_COMMA = YES;
182
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
183
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
184
+ CLANG_WARN_EMPTY_BODY = YES;
185
+ CLANG_WARN_ENUM_CONVERSION = YES;
186
+ CLANG_WARN_INFINITE_RECURSION = YES;
187
+ CLANG_WARN_INT_CONVERSION = YES;
188
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
189
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
190
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
191
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
192
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
193
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
194
+ CLANG_WARN_UNREACHABLE_CODE = YES;
195
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
196
+ COPY_PHASE_STRIP = YES;
197
+ ENABLE_NS_ASSERTIONS = NO;
198
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
199
+ GCC_C_LANGUAGE_STANDARD = gnu99;
200
+ GCC_NO_COMMON_BLOCKS = YES;
201
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
202
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
203
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
204
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
205
+ GCC_WARN_UNUSED_FUNCTION = YES;
206
+ GCC_WARN_UNUSED_VARIABLE = YES;
207
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
208
+ MTL_ENABLE_DEBUG_INFO = NO;
209
+ SDKROOT = iphoneos;
210
+ VALIDATE_PRODUCT = YES;
211
+ };
212
+ name = Release;
213
+ };
214
+ 58B511F01A9E6C8500147676 /* Debug */ = {
215
+ isa = XCBuildConfiguration;
216
+ buildSettings = {
217
+ HEADER_SEARCH_PATHS = (
218
+ "$(inherited)",
219
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
220
+ "$(SRCROOT)/../../../React/**",
221
+ "$(SRCROOT)/../../react-native/React/**",
222
+ );
223
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
224
+ OTHER_LDFLAGS = "-ObjC";
225
+ PRODUCT_NAME = OPSQLite;
226
+ SKIP_INSTALL = YES;
227
+ SWIFT_OBJC_BRIDGING_HEADER = "OPSQLite-Bridging-Header.h";
228
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
229
+ SWIFT_VERSION = 5.0;
230
+ };
231
+ name = Debug;
232
+ };
233
+ 58B511F11A9E6C8500147676 /* Release */ = {
234
+ isa = XCBuildConfiguration;
235
+ buildSettings = {
236
+ HEADER_SEARCH_PATHS = (
237
+ "$(inherited)",
238
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
239
+ "$(SRCROOT)/../../../React/**",
240
+ "$(SRCROOT)/../../react-native/React/**",
241
+ );
242
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
243
+ OTHER_LDFLAGS = "-ObjC";
244
+ PRODUCT_NAME = OPSQLite;
245
+ SKIP_INSTALL = YES;
246
+ SWIFT_OBJC_BRIDGING_HEADER = "OPSQLite-Bridging-Header.h";
247
+ SWIFT_VERSION = 5.0;
248
+ };
249
+ name = Release;
250
+ };
251
+ /* End XCBuildConfiguration section */
252
+
253
+ /* Begin XCConfigurationList section */
254
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "OPSQLite" */ = {
255
+ isa = XCConfigurationList;
256
+ buildConfigurations = (
257
+ 58B511ED1A9E6C8500147676 /* Debug */,
258
+ 58B511EE1A9E6C8500147676 /* Release */,
259
+ );
260
+ defaultConfigurationIsVisible = 0;
261
+ defaultConfigurationName = Release;
262
+ };
263
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "OPSQLite" */ = {
264
+ isa = XCConfigurationList;
265
+ buildConfigurations = (
266
+ 58B511F01A9E6C8500147676 /* Debug */,
267
+ 58B511F11A9E6C8500147676 /* Release */,
268
+ );
269
+ defaultConfigurationIsVisible = 0;
270
+ defaultConfigurationName = Release;
271
+ };
272
+ /* End XCConfigurationList section */
273
+ };
274
+ rootObject = 58B511D31A9E6C8500147676 /* Project object */;
275
+ }
@@ -0,0 +1,46 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>LibraryIdentifier</key>
9
+ <string>ios-arm64</string>
10
+ <key>LibraryPath</key>
11
+ <string>crsqlite.framework</string>
12
+ <key>SupportedArchitectures</key>
13
+ <array>
14
+ <string>arm64</string>
15
+ </array>
16
+ <key>SupportedPlatform</key>
17
+ <string>ios</string>
18
+ </dict>
19
+ <dict>
20
+ <key>LibraryIdentifier</key>
21
+ <string>ios-arm64_x86_64-simulator</string>
22
+ <key>LibraryPath</key>
23
+ <string>crsqlite.framework</string>
24
+ <key>SupportedArchitectures</key>
25
+ <array>
26
+ <string>arm64</string>
27
+ <string>x86_64</string>
28
+ </array>
29
+ <key>SupportedPlatform</key>
30
+ <string>ios</string>
31
+ <key>SupportedPlatformVariant</key>
32
+ <string>simulator</string>
33
+ </dict>
34
+ </array>
35
+ <key>CFBundlePackageType</key>
36
+ <string>XFWK</string>
37
+ <key>XCFrameworkFormatVersion</key>
38
+ <string>1.0</string>
39
+ <key>CFBundleVersion</key>
40
+ <string>1.0.0</string>
41
+ <key>CFBundleShortVersionString</key>
42
+ <string>1.0.0</string>
43
+ <key>MinimumOSVersion</key>
44
+ <string>8.0</string>
45
+ </dict>
46
+ </plist>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>crsqlite</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>io.vlcn.crsqlite</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundlePackageType</key>
14
+ <string>FMWK</string>
15
+ <key>CFBundleSignature</key>
16
+ <string>????</string>
17
+ <key>CFBundleVersion</key>
18
+ <string>1.0.0</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0.0</string>
21
+ <key>MinimumOSVersion</key>
22
+ <string>8.0</string>
23
+ </dict>
24
+ </plist>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>crsqlite</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>io.vlcn.crsqlite</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundlePackageType</key>
14
+ <string>FMWK</string>
15
+ <key>CFBundleSignature</key>
16
+ <string>????</string>
17
+ <key>CFBundleVersion</key>
18
+ <string>1.0.0</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0.0</string>
21
+ <key>MinimumOSVersion</key>
22
+ <string>8.0</string>
23
+ </dict>
24
+ </plist>
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>libsql_experimental.a</string>
10
+ <key>HeadersPath</key>
11
+ <string>Headers</string>
12
+ <key>LibraryIdentifier</key>
13
+ <string>ios-arm64</string>
14
+ <key>LibraryPath</key>
15
+ <string>libsql_experimental.a</string>
16
+ <key>SupportedArchitectures</key>
17
+ <array>
18
+ <string>arm64</string>
19
+ </array>
20
+ <key>SupportedPlatform</key>
21
+ <string>ios</string>
22
+ </dict>
23
+ <dict>
24
+ <key>BinaryPath</key>
25
+ <string>libsql_experimental.a</string>
26
+ <key>HeadersPath</key>
27
+ <string>Headers</string>
28
+ <key>LibraryIdentifier</key>
29
+ <string>ios-arm64_x86_64-simulator</string>
30
+ <key>LibraryPath</key>
31
+ <string>libsql_experimental.a</string>
32
+ <key>SupportedArchitectures</key>
33
+ <array>
34
+ <string>arm64</string>
35
+ <string>x86_64</string>
36
+ </array>
37
+ <key>SupportedPlatform</key>
38
+ <string>ios</string>
39
+ <key>SupportedPlatformVariant</key>
40
+ <string>simulator</string>
41
+ </dict>
42
+ </array>
43
+ <key>CFBundlePackageType</key>
44
+ <string>XFWK</string>
45
+ <key>XCFrameworkFormatVersion</key>
46
+ <string>1.0</string>
47
+ </dict>
48
+ </plist>
@@ -0,0 +1,172 @@
1
+ #ifndef LIBSQL_EXPERIMENTAL_H
2
+ #define LIBSQL_EXPERIMENTAL_H
3
+
4
+ #include <stdint.h>
5
+
6
+ #define LIBSQL_INT 1
7
+
8
+ #define LIBSQL_FLOAT 2
9
+
10
+ #define LIBSQL_TEXT 3
11
+
12
+ #define LIBSQL_BLOB 4
13
+
14
+ #define LIBSQL_NULL 5
15
+
16
+ typedef struct libsql_connection libsql_connection;
17
+
18
+ typedef struct libsql_database libsql_database;
19
+
20
+ typedef struct libsql_row libsql_row;
21
+
22
+ typedef struct libsql_rows libsql_rows;
23
+
24
+ typedef struct libsql_rows_future libsql_rows_future;
25
+
26
+ typedef struct libsql_stmt libsql_stmt;
27
+
28
+ typedef const libsql_database *libsql_database_t;
29
+
30
+ typedef struct {
31
+ int frame_no;
32
+ int frames_synced;
33
+ } replicated;
34
+
35
+ typedef struct {
36
+ const char *db_path;
37
+ const char *primary_url;
38
+ const char *auth_token;
39
+ char read_your_writes;
40
+ const char *encryption_key;
41
+ int sync_interval;
42
+ char with_webpki;
43
+ } libsql_config;
44
+
45
+ typedef const libsql_connection *libsql_connection_t;
46
+
47
+ typedef const libsql_stmt *libsql_stmt_t;
48
+
49
+ typedef const libsql_rows *libsql_rows_t;
50
+
51
+ typedef const libsql_rows_future *libsql_rows_future_t;
52
+
53
+ typedef const libsql_row *libsql_row_t;
54
+
55
+ typedef struct {
56
+ const char *ptr;
57
+ int len;
58
+ } blob;
59
+
60
+ #ifdef __cplusplus
61
+ extern "C" {
62
+ #endif // __cplusplus
63
+
64
+ int libsql_enable_internal_tracing(void);
65
+
66
+ int libsql_sync(libsql_database_t db, const char **out_err_msg);
67
+
68
+ int libsql_sync2(libsql_database_t db, replicated *out_replicated, const char **out_err_msg);
69
+
70
+ int libsql_open_sync(const char *db_path,
71
+ const char *primary_url,
72
+ const char *auth_token,
73
+ char read_your_writes,
74
+ const char *encryption_key,
75
+ libsql_database_t *out_db,
76
+ const char **out_err_msg);
77
+
78
+ int libsql_open_sync_with_webpki(const char *db_path,
79
+ const char *primary_url,
80
+ const char *auth_token,
81
+ char read_your_writes,
82
+ const char *encryption_key,
83
+ libsql_database_t *out_db,
84
+ const char **out_err_msg);
85
+
86
+ int libsql_open_sync_with_config(libsql_config config, libsql_database_t *out_db, const char **out_err_msg);
87
+
88
+ int libsql_open_ext(const char *url, libsql_database_t *out_db, const char **out_err_msg);
89
+
90
+ int libsql_open_file(const char *url, libsql_database_t *out_db, const char **out_err_msg);
91
+
92
+ int libsql_open_remote(const char *url, const char *auth_token, libsql_database_t *out_db, const char **out_err_msg);
93
+
94
+ int libsql_open_remote_with_webpki(const char *url,
95
+ const char *auth_token,
96
+ libsql_database_t *out_db,
97
+ const char **out_err_msg);
98
+
99
+ void libsql_close(libsql_database_t db);
100
+
101
+ int libsql_connect(libsql_database_t db, libsql_connection_t *out_conn, const char **out_err_msg);
102
+
103
+ int libsql_load_extension(libsql_connection_t conn,
104
+ const char *path,
105
+ const char *entry_point,
106
+ const char **out_err_msg);
107
+
108
+ int libsql_reset(libsql_connection_t conn, const char **out_err_msg);
109
+
110
+ void libsql_disconnect(libsql_connection_t conn);
111
+
112
+ int libsql_prepare(libsql_connection_t conn, const char *sql, libsql_stmt_t *out_stmt, const char **out_err_msg);
113
+
114
+ int libsql_bind_int(libsql_stmt_t stmt, int idx, long long value, const char **out_err_msg);
115
+
116
+ int libsql_bind_float(libsql_stmt_t stmt, int idx, double value, const char **out_err_msg);
117
+
118
+ int libsql_bind_null(libsql_stmt_t stmt, int idx, const char **out_err_msg);
119
+
120
+ int libsql_bind_string(libsql_stmt_t stmt, int idx, const char *value, const char **out_err_msg);
121
+
122
+ int libsql_bind_blob(libsql_stmt_t stmt, int idx, const unsigned char *value, int value_len, const char **out_err_msg);
123
+
124
+ int libsql_query_stmt(libsql_stmt_t stmt, libsql_rows_t *out_rows, const char **out_err_msg);
125
+
126
+ int libsql_execute_stmt(libsql_stmt_t stmt, const char **out_err_msg);
127
+
128
+ int libsql_reset_stmt(libsql_stmt_t stmt, const char **out_err_msg);
129
+
130
+ void libsql_free_stmt(libsql_stmt_t stmt);
131
+
132
+ int libsql_query(libsql_connection_t conn, const char *sql, libsql_rows_t *out_rows, const char **out_err_msg);
133
+
134
+ int libsql_execute(libsql_connection_t conn, const char *sql, const char **out_err_msg);
135
+
136
+ void libsql_free_rows(libsql_rows_t res);
137
+
138
+ void libsql_free_rows_future(libsql_rows_future_t res);
139
+
140
+ void libsql_wait_result(libsql_rows_future_t res);
141
+
142
+ int libsql_column_count(libsql_rows_t res);
143
+
144
+ int libsql_column_name(libsql_rows_t res, int col, const char **out_name, const char **out_err_msg);
145
+
146
+ int libsql_column_type(libsql_rows_t res, libsql_row_t row, int col, int *out_type, const char **out_err_msg);
147
+
148
+ uint64_t libsql_changes(libsql_connection_t conn);
149
+
150
+ int64_t libsql_last_insert_rowid(libsql_connection_t conn);
151
+
152
+ int libsql_next_row(libsql_rows_t res, libsql_row_t *out_row, const char **out_err_msg);
153
+
154
+ void libsql_free_row(libsql_row_t res);
155
+
156
+ int libsql_get_string(libsql_row_t res, int col, const char **out_value, const char **out_err_msg);
157
+
158
+ void libsql_free_string(const char *ptr);
159
+
160
+ int libsql_get_int(libsql_row_t res, int col, long long *out_value, const char **out_err_msg);
161
+
162
+ int libsql_get_float(libsql_row_t res, int col, double *out_value, const char **out_err_msg);
163
+
164
+ int libsql_get_blob(libsql_row_t res, int col, blob *out_blob, const char **out_err_msg);
165
+
166
+ void libsql_free_blob(blob b);
167
+
168
+ #ifdef __cplusplus
169
+ } // extern "C"
170
+ #endif // __cplusplus
171
+
172
+ #endif /* LIBSQL_EXPERIMENTAL_H */