better-sqlite3-multiple-ciphers 7.5.2 → 7.6.3-beta.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 +8 -8
- package/deps/setup.ps1 +1 -1
- package/deps/sqlite3/sqlite3.c +22701 -4749
- package/deps/sqlite3/sqlite3.h +38 -8
- package/deps/sqlite3/sqlite3ext.h +12 -0
- package/package.json +2 -2
package/deps/sqlite3/sqlite3.h
CHANGED
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
|
|
32
32
|
#define SQLITE3MC_VERSION_MAJOR 1
|
|
33
33
|
#define SQLITE3MC_VERSION_MINOR 4
|
|
34
|
-
#define SQLITE3MC_VERSION_RELEASE
|
|
34
|
+
#define SQLITE3MC_VERSION_RELEASE 8
|
|
35
35
|
#define SQLITE3MC_VERSION_SUBRELEASE 0
|
|
36
|
-
#define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.4.
|
|
36
|
+
#define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.4.8"
|
|
37
37
|
|
|
38
38
|
#endif /* SQLITE3MC_VERSION_H_ */
|
|
39
39
|
/*** End of #include "sqlite3mc_version.h" ***/
|
|
@@ -192,9 +192,9 @@ extern "C" {
|
|
|
192
192
|
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
|
193
193
|
** [sqlite_version()] and [sqlite_source_id()].
|
|
194
194
|
*/
|
|
195
|
-
#define SQLITE_VERSION "3.
|
|
196
|
-
#define SQLITE_VERSION_NUMBER
|
|
197
|
-
#define SQLITE_SOURCE_ID "2022-
|
|
195
|
+
#define SQLITE_VERSION "3.39.2"
|
|
196
|
+
#define SQLITE_VERSION_NUMBER 3039002
|
|
197
|
+
#define SQLITE_SOURCE_ID "2022-07-21 15:24:47 698edb77537b67c41adc68f9b892db56bcf9a55e00371a61420f3ddd668e6603"
|
|
198
198
|
|
|
199
199
|
/*
|
|
200
200
|
** CAPI3REF: Run-Time Library Version Numbers
|
|
@@ -5639,7 +5639,8 @@ SQLITE_API unsigned int sqlite3_value_subtype(sqlite3_value*);
|
|
|
5639
5639
|
** object D and returns a pointer to that copy. ^The [sqlite3_value] returned
|
|
5640
5640
|
** is a [protected sqlite3_value] object even if the input is not.
|
|
5641
5641
|
** ^The sqlite3_value_dup(V) interface returns NULL if V is NULL or if a
|
|
5642
|
-
** memory allocation fails.
|
|
5642
|
+
** memory allocation fails. ^If V is a [pointer value], then the result
|
|
5643
|
+
** of sqlite3_value_dup(V) is a NULL value.
|
|
5643
5644
|
**
|
|
5644
5645
|
** ^The sqlite3_value_free(V) interface frees an [sqlite3_value] object
|
|
5645
5646
|
** previously obtained from [sqlite3_value_dup()]. ^If V is a NULL pointer
|
|
@@ -6321,6 +6322,28 @@ SQLITE_API int sqlite3_get_autocommit(sqlite3*);
|
|
|
6321
6322
|
*/
|
|
6322
6323
|
SQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt*);
|
|
6323
6324
|
|
|
6325
|
+
/*
|
|
6326
|
+
** CAPI3REF: Return The Schema Name For A Database Connection
|
|
6327
|
+
** METHOD: sqlite3
|
|
6328
|
+
**
|
|
6329
|
+
** ^The sqlite3_db_name(D,N) interface returns a pointer to the schema name
|
|
6330
|
+
** for the N-th database on database connection D, or a NULL pointer of N is
|
|
6331
|
+
** out of range. An N value of 0 means the main database file. An N of 1 is
|
|
6332
|
+
** the "temp" schema. Larger values of N correspond to various ATTACH-ed
|
|
6333
|
+
** databases.
|
|
6334
|
+
**
|
|
6335
|
+
** Space to hold the string that is returned by sqlite3_db_name() is managed
|
|
6336
|
+
** by SQLite itself. The string might be deallocated by any operation that
|
|
6337
|
+
** changes the schema, including [ATTACH] or [DETACH] or calls to
|
|
6338
|
+
** [sqlite3_serialize()] or [sqlite3_deserialize()], even operations that
|
|
6339
|
+
** occur on a different thread. Applications that need to
|
|
6340
|
+
** remember the string long-term should make their own copy. Applications that
|
|
6341
|
+
** are accessing the same database connection simultaneously on multiple
|
|
6342
|
+
** threads should mutex-protect calls to this API and should make their own
|
|
6343
|
+
** private copy of the result prior to releasing the mutex.
|
|
6344
|
+
*/
|
|
6345
|
+
SQLITE_API const char *sqlite3_db_name(sqlite3 *db, int N);
|
|
6346
|
+
|
|
6324
6347
|
/*
|
|
6325
6348
|
** CAPI3REF: Return The Filename For A Database Connection
|
|
6326
6349
|
** METHOD: sqlite3
|
|
@@ -9600,8 +9623,8 @@ SQLITE_API SQLITE_EXPERIMENTAL const char *sqlite3_vtab_collation(sqlite3_index_
|
|
|
9600
9623
|
** of a [virtual table] implementation. The result of calling this
|
|
9601
9624
|
** interface from outside of xBestIndex() is undefined and probably harmful.
|
|
9602
9625
|
**
|
|
9603
|
-
** ^The sqlite3_vtab_distinct() interface returns an integer
|
|
9604
|
-
**
|
|
9626
|
+
** ^The sqlite3_vtab_distinct() interface returns an integer between 0 and
|
|
9627
|
+
** 3. The integer returned by sqlite3_vtab_distinct()
|
|
9605
9628
|
** gives the virtual table additional information about how the query
|
|
9606
9629
|
** planner wants the output to be ordered. As long as the virtual table
|
|
9607
9630
|
** can meet the ordering requirements of the query planner, it may set
|
|
@@ -9633,6 +9656,13 @@ SQLITE_API SQLITE_EXPERIMENTAL const char *sqlite3_vtab_collation(sqlite3_index_
|
|
|
9633
9656
|
** that have the same value for all columns identified by "aOrderBy".
|
|
9634
9657
|
** ^However omitting the extra rows is optional.
|
|
9635
9658
|
** This mode is used for a DISTINCT query.
|
|
9659
|
+
** <li value="3"><p>
|
|
9660
|
+
** ^(If the sqlite3_vtab_distinct() interface returns 3, that means
|
|
9661
|
+
** that the query planner needs only distinct rows but it does need the
|
|
9662
|
+
** rows to be sorted.)^ ^The virtual table implementation is free to omit
|
|
9663
|
+
** rows that are identical in all aOrderBy columns, if it wants to, but
|
|
9664
|
+
** it is not required to omit any rows. This mode is used for queries
|
|
9665
|
+
** that have both DISTINCT and ORDER BY clauses.
|
|
9636
9666
|
** </ol>
|
|
9637
9667
|
**
|
|
9638
9668
|
** ^For the purposes of comparing virtual table output values to see if the
|
|
@@ -351,6 +351,12 @@ struct sqlite3_api_routines {
|
|
|
351
351
|
int (*vtab_in)(sqlite3_index_info*,int,int);
|
|
352
352
|
int (*vtab_in_first)(sqlite3_value*,sqlite3_value**);
|
|
353
353
|
int (*vtab_in_next)(sqlite3_value*,sqlite3_value**);
|
|
354
|
+
/* Version 3.39.0 and later */
|
|
355
|
+
int (*deserialize)(sqlite3*,const char*,unsigned char*,
|
|
356
|
+
sqlite3_int64,sqlite3_int64,unsigned);
|
|
357
|
+
unsigned char *(*serialize)(sqlite3*,const char *,sqlite3_int64*,
|
|
358
|
+
unsigned int);
|
|
359
|
+
const char *(*db_name)(sqlite3*,int);
|
|
354
360
|
};
|
|
355
361
|
|
|
356
362
|
/*
|
|
@@ -669,6 +675,12 @@ typedef int (*sqlite3_loadext_entry)(
|
|
|
669
675
|
#define sqlite3_vtab_in sqlite3_api->vtab_in
|
|
670
676
|
#define sqlite3_vtab_in_first sqlite3_api->vtab_in_first
|
|
671
677
|
#define sqlite3_vtab_in_next sqlite3_api->vtab_in_next
|
|
678
|
+
/* Version 3.39.0 and later */
|
|
679
|
+
#ifndef SQLITE_OMIT_DESERIALIZE
|
|
680
|
+
#define sqlite3_deserialize sqlite3_api->deserialize
|
|
681
|
+
#define sqlite3_serialize sqlite3_api->serialize
|
|
682
|
+
#endif
|
|
683
|
+
#define sqlite3_db_name sqlite3_api->db_name
|
|
672
684
|
#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
|
|
673
685
|
|
|
674
686
|
#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-sqlite3-multiple-ciphers",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.3-beta.0",
|
|
4
4
|
"description": "better-sqlite3 with multiple-cipher encryption support",
|
|
5
5
|
"homepage": "https://github.com/m4heshd/better-sqlite3-multiple-ciphers",
|
|
6
6
|
"author": "Mahesh Bandara Wijerathna (m4heshd) <m4heshd@gmail.com>",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"fs-extra": "^10.1.0",
|
|
26
26
|
"mocha": "^8.3.2",
|
|
27
27
|
"nodemark": "^0.3.0",
|
|
28
|
-
"prebuild": "^11.0.
|
|
28
|
+
"prebuild": "^11.0.4",
|
|
29
29
|
"sqlite": "^4.1.1",
|
|
30
30
|
"sqlite3": "^5.0.8"
|
|
31
31
|
},
|