diff --git a/cpp/DBHostObject.cpp b/cpp/DBHostObject.cpp index fd44d7a..5600543 100644 --- a/cpp/DBHostObject.cpp +++ b/cpp/DBHostObject.cpp @@ -375,8 +375,11 @@ void DBHostObject::create_jsi_functions() { if (count == 2) { params = to_variant_vec(rt, args[1]); } - +#ifdef OP_SQLITE_USE_LIBSQL + auto status = opsqlite_libsql_execute(db_name, query, ¶ms); +#else auto status = opsqlite_execute(db_name, query, ¶ms); +#endif if (status.type != SQLiteOk) { throw std::runtime_error(status.message); diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index f652c9b..7f9537c 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -10,7 +10,7 @@ PODS: - hermes-engine (0.76.1): - hermes-engine/Pre-built (= 0.76.1) - hermes-engine/Pre-built (0.76.1) - - op-sqlite (11.0.2): + - op-sqlite (0.0.0): - DoubleConversion - glog - hermes-engine @@ -1785,7 +1785,7 @@ SPEC CHECKSUMS: GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4 glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a hermes-engine: 46f1ffbf0297f4298862068dd4c274d4ac17a1fd - op-sqlite: 3d69d1f9e320b7f3f93c6cb6bc2edabe7d7eab63 + op-sqlite: fc35cf9d2d0ace5c5b7189e2ccadcfbb80e6e6f5 RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648 RCTDeprecation: fde92935b3caa6cb65cbff9fbb7d3a9867ffb259 RCTRequired: 75c6cee42d21c1530a6f204ba32ff57335d19007 diff --git a/example/package.json b/example/package.json index e3a9e2c..78c51cc 100644 --- a/example/package.json +++ b/example/package.json @@ -73,7 +73,7 @@ "iosSqlite": false, "fts5": true, "rtree": true, - "libsql": false, + "libsql": true, "sqliteVec": true, "tokenizers": [ "wordtokenizer", diff --git a/package.json b/package.json index 2bf1b86..e3f67ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@op-engineering/op-sqlite", - "version": "11.0.2", + "version": "0.0.0", "description": "Next generation SQLite for React Native", "main": "lib/commonjs/index", "module": "lib/module/index",