better-sqlite3-multiple-ciphers 7.6.3-beta.0 → 8.0.0
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/README.md +31 -13
- package/binding.gyp +9 -2
- package/deps/defines.gypi +25 -25
- package/deps/download.sh +114 -111
- package/deps/setup.ps1 +1 -1
- package/deps/sqlite3/sqlite3.c +4354 -1855
- package/deps/sqlite3/sqlite3.h +180 -44
- package/deps/sqlite3/sqlite3ext.h +6 -2
- package/package.json +11 -3
- package/src/better_sqlite3.cpp +37 -27
- package/src/better_sqlite3.hpp +18 -18
package/src/better_sqlite3.hpp
CHANGED
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
#include <node_buffer.h>
|
|
19
19
|
#line 31 "./src/util/macros.lzz"
|
|
20
20
|
template <class T> using CopyablePersistent = v8::Persistent<T, v8::CopyablePersistentTraits<T>>;
|
|
21
|
+
#line 36 "./src/util/binder.lzz"
|
|
22
|
+
static bool IsPlainObject(v8::Isolate* isolate, v8::Local<v8::Object> obj);
|
|
21
23
|
#define LZZ_INLINE inline
|
|
22
24
|
#line 16 "./src/util/macros.lzz"
|
|
23
25
|
v8::Local <v8::String> StringFromUtf8 (v8::Isolate * isolate, char const * data, int length);
|
|
@@ -666,17 +668,17 @@ private:
|
|
|
666
668
|
static int xRowid (sqlite3_vtab_cursor * cursor, sqlite_int64 * output);
|
|
667
669
|
#line 343 "./src/util/custom-table.lzz"
|
|
668
670
|
static int xBestIndex (sqlite3_vtab * vtab, sqlite3_index_info * output);
|
|
669
|
-
#line
|
|
671
|
+
#line 394 "./src/util/custom-table.lzz"
|
|
670
672
|
void PropagateJSError ();
|
|
671
|
-
#line
|
|
673
|
+
#line 399 "./src/util/custom-table.lzz"
|
|
672
674
|
Addon * const addon;
|
|
673
|
-
#line
|
|
675
|
+
#line 400 "./src/util/custom-table.lzz"
|
|
674
676
|
v8::Isolate * const isolate;
|
|
675
|
-
#line
|
|
677
|
+
#line 401 "./src/util/custom-table.lzz"
|
|
676
678
|
Database * const db;
|
|
677
|
-
#line
|
|
679
|
+
#line 402 "./src/util/custom-table.lzz"
|
|
678
680
|
std::string const name;
|
|
679
|
-
#line
|
|
681
|
+
#line 403 "./src/util/custom-table.lzz"
|
|
680
682
|
CopyablePersistent <v8::Function> const factory;
|
|
681
683
|
};
|
|
682
684
|
#line 65 "./src/util/data.lzz"
|
|
@@ -752,27 +754,25 @@ private:
|
|
|
752
754
|
#line 32 "./src/util/binder.lzz"
|
|
753
755
|
bool bound_object;
|
|
754
756
|
};
|
|
755
|
-
#line
|
|
756
|
-
static bool IsPlainObject (v8::Isolate * isolate, v8::Local <v8::Object> obj);
|
|
757
|
-
#line 44 "./src/util/binder.lzz"
|
|
757
|
+
#line 54 "./src/util/binder.lzz"
|
|
758
758
|
void Fail (void (* Throw) (char const *), char const * message);
|
|
759
|
-
#line
|
|
759
|
+
#line 62 "./src/util/binder.lzz"
|
|
760
760
|
int NextAnonIndex ();
|
|
761
|
-
#line
|
|
761
|
+
#line 68 "./src/util/binder.lzz"
|
|
762
762
|
void BindValue (v8::Isolate * isolate, v8::Local <v8::Value> value, int index);
|
|
763
|
-
#line
|
|
763
|
+
#line 89 "./src/util/binder.lzz"
|
|
764
764
|
int BindArray (v8::Isolate * isolate, v8::Local <v8::Array> arr);
|
|
765
|
-
#line
|
|
765
|
+
#line 115 "./src/util/binder.lzz"
|
|
766
766
|
int BindObject (v8::Isolate * isolate, v8::Local <v8::Object> obj, Statement * stmt);
|
|
767
|
-
#line
|
|
767
|
+
#line 159 "./src/util/binder.lzz"
|
|
768
768
|
Result BindArgs (v8::FunctionCallbackInfo <v8 :: Value> const & info, int argc, Statement * stmt);
|
|
769
|
-
#line
|
|
769
|
+
#line 199 "./src/util/binder.lzz"
|
|
770
770
|
sqlite3_stmt * handle;
|
|
771
|
-
#line
|
|
771
|
+
#line 200 "./src/util/binder.lzz"
|
|
772
772
|
int param_count;
|
|
773
|
-
#line
|
|
773
|
+
#line 201 "./src/util/binder.lzz"
|
|
774
774
|
int anon_index;
|
|
775
|
-
#line
|
|
775
|
+
#line 202 "./src/util/binder.lzz"
|
|
776
776
|
bool success;
|
|
777
777
|
};
|
|
778
778
|
#line 34 "./src/better_sqlite3.lzz"
|