2020
2121// Forward declaration of `ArrayBuffer` to properly resolve imports.
2222namespace NitroModules { class ArrayBuffer ; }
23- // Forward declaration of `NativeSQLiteNullValue ` to properly resolve imports.
24- namespace margelo ::nitro::rnnitrosqlite { struct NativeSQLiteNullValue ; }
23+ // Forward declaration of `SQLiteNullValue ` to properly resolve imports.
24+ namespace margelo ::nitro::rnnitrosqlite { struct SQLiteNullValue ; }
2525
2626#include < string>
2727#include < optional>
2828#include < variant>
2929#include < vector>
3030#include < NitroModules/ArrayBuffer.hpp>
31- #include " NativeSQLiteNullValue .hpp"
31+ #include " SQLiteNullValue .hpp"
3232
3333namespace margelo ::nitro::rnnitrosqlite {
3434
@@ -38,10 +38,10 @@ namespace margelo::nitro::rnnitrosqlite {
3838 struct BatchQueryCommand {
3939 public:
4040 std::string query SWIFT_PRIVATE;
41- std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>>>> params SWIFT_PRIVATE;
41+ std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>>>> params SWIFT_PRIVATE;
4242
4343 public:
44- explicit BatchQueryCommand (std::string query, std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>>>> params): query(query), params(params) {}
44+ explicit BatchQueryCommand (std::string query, std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>>>> params): query(query), params(params) {}
4545 };
4646
4747} // namespace margelo::nitro::rnnitrosqlite
@@ -57,13 +57,13 @@ namespace margelo::nitro {
5757 jsi::Object obj = arg.asObject (runtime);
5858 return BatchQueryCommand (
5959 JSIConverter<std::string>::fromJSI (runtime, obj.getProperty (runtime, " query" )),
60- JSIConverter<std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>>>>>::fromJSI (runtime, obj.getProperty (runtime, " params" ))
60+ JSIConverter<std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>>>>>::fromJSI (runtime, obj.getProperty (runtime, " params" ))
6161 );
6262 }
6363 static inline jsi::Value toJSI (jsi::Runtime& runtime, const BatchQueryCommand& arg) {
6464 jsi::Object obj (runtime);
6565 obj.setProperty (runtime, " query" , JSIConverter<std::string>::toJSI (runtime, arg.query ));
66- obj.setProperty (runtime, " params" , JSIConverter<std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>>>>>::toJSI (runtime, arg.params ));
66+ obj.setProperty (runtime, " params" , JSIConverter<std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>>>>>::toJSI (runtime, arg.params ));
6767 return obj;
6868 }
6969 static inline bool canConvert (jsi::Runtime& runtime, const jsi::Value& value) {
@@ -72,7 +72,7 @@ namespace margelo::nitro {
7272 }
7373 jsi::Object obj = value.getObject (runtime);
7474 if (!JSIConverter<std::string>::canConvert (runtime, obj.getProperty (runtime, " query" ))) return false ;
75- if (!JSIConverter<std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, NativeSQLiteNullValue >>>>>>::canConvert (runtime, obj.getProperty (runtime, " params" ))) return false ;
75+ if (!JSIConverter<std::optional<std::variant<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>, std::vector<std::vector<std::variant<std::string, double , bool , std::shared_ptr<ArrayBuffer>, SQLiteNullValue >>>>>>::canConvert (runtime, obj.getProperty (runtime, " params" ))) return false ;
7676 return true ;
7777 }
7878 };
0 commit comments