better-sqlite3-multiple-ciphers 7.5.2-beta.2 → 7.5.2-beta.3
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 +3 -3
- package/deps/setup.ps1 +1 -1
- package/deps/sqlite3/sqlite3.c +26 -12
- package/deps/sqlite3/sqlite3.h +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,10 +23,10 @@ The fastest and simplest library for SQLite3 in Node.js. This particular fork su
|
|
|
23
23
|
- **SQLite3 Multiple Ciphers** - [`1.3.10`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.3.10)
|
|
24
24
|
|
|
25
25
|
- ### Beta
|
|
26
|
-
- **better-sqlite3-multiple-ciphers** - [`7.5.2-beta.
|
|
26
|
+
- **better-sqlite3-multiple-ciphers** - [`7.5.2-beta.3`](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/releases/tag/v7.5.2-beta.3)
|
|
27
27
|
- **better-sqlite3** - [`7.5.1`](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v7.5.1)
|
|
28
|
-
- **SQLite** - [`3.38.
|
|
29
|
-
- **SQLite3 Multiple Ciphers** - [`1.4.
|
|
28
|
+
- **SQLite** - [`3.38.5`](https://www.sqlite.org/releaselog/3_38_5.html)
|
|
29
|
+
- **SQLite3 Multiple Ciphers** - [`1.4.3`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.4.3)
|
|
30
30
|
|
|
31
31
|
## Help this project stay strong! 💪
|
|
32
32
|
|
package/deps/setup.ps1
CHANGED
package/deps/sqlite3/sqlite3.c
CHANGED
|
@@ -92,7 +92,7 @@ extern SQLITE_API LPWSTR sqlite3_win32_utf8_to_unicode(const char*);
|
|
|
92
92
|
/*** Begin of #include "sqlite3patched.c" ***/
|
|
93
93
|
/******************************************************************************
|
|
94
94
|
** This file is an amalgamation of many separate C source files from SQLite
|
|
95
|
-
** version 3.38.
|
|
95
|
+
** version 3.38.5. By combining all the individual C code files into this
|
|
96
96
|
** single large file, the entire code can be compiled as a single translation
|
|
97
97
|
** unit. This allows many compilers to do optimizations that would not be
|
|
98
98
|
** possible if the files were compiled separately. Performance improvements
|
|
@@ -544,9 +544,9 @@ extern "C" {
|
|
|
544
544
|
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
|
545
545
|
** [sqlite_version()] and [sqlite_source_id()].
|
|
546
546
|
*/
|
|
547
|
-
#define SQLITE_VERSION "3.38.
|
|
548
|
-
#define SQLITE_VERSION_NUMBER
|
|
549
|
-
#define SQLITE_SOURCE_ID "2022-
|
|
547
|
+
#define SQLITE_VERSION "3.38.5"
|
|
548
|
+
#define SQLITE_VERSION_NUMBER 3038005
|
|
549
|
+
#define SQLITE_SOURCE_ID "2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe"
|
|
550
550
|
|
|
551
551
|
/*
|
|
552
552
|
** CAPI3REF: Run-Time Library Version Numbers
|
|
@@ -88486,6 +88486,8 @@ case OP_Gosub: { /* jump */
|
|
|
88486
88486
|
/* Most jump operations do a goto to this spot in order to update
|
|
88487
88487
|
** the pOp pointer. */
|
|
88488
88488
|
jump_to_p2:
|
|
88489
|
+
assert( pOp->p2>0 ); /* There are never any jumps to instruction 0 */
|
|
88490
|
+
assert( pOp->p2<p->nOp ); /* Jumps must be in range */
|
|
88489
88491
|
pOp = &aOp[pOp->p2 - 1];
|
|
88490
88492
|
break;
|
|
88491
88493
|
}
|
|
@@ -133970,6 +133972,14 @@ SQLITE_PRIVATE void sqlite3ParseObjectInit(Parse *pParse, sqlite3 *db){
|
|
|
133970
133972
|
if( db->mallocFailed ) sqlite3ErrorMsg(pParse, "out of memory");
|
|
133971
133973
|
}
|
|
133972
133974
|
|
|
133975
|
+
/*
|
|
133976
|
+
** Maximum number of times that we will try again to prepare a statement
|
|
133977
|
+
** that returns SQLITE_ERROR_RETRY.
|
|
133978
|
+
*/
|
|
133979
|
+
#ifndef SQLITE_MAX_PREPARE_RETRY
|
|
133980
|
+
# define SQLITE_MAX_PREPARE_RETRY 25
|
|
133981
|
+
#endif
|
|
133982
|
+
|
|
133973
133983
|
/*
|
|
133974
133984
|
** Compile the UTF-8 encoded SQL statement zSql into a statement handle.
|
|
133975
133985
|
*/
|
|
@@ -134144,7 +134154,7 @@ static int sqlite3LockAndPrepare(
|
|
|
134144
134154
|
rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
|
|
134145
134155
|
assert( rc==SQLITE_OK || *ppStmt==0 );
|
|
134146
134156
|
if( rc==SQLITE_OK || db->mallocFailed ) break;
|
|
134147
|
-
}while( rc==SQLITE_ERROR_RETRY
|
|
134157
|
+
}while( (rc==SQLITE_ERROR_RETRY && (cnt++)<SQLITE_MAX_PREPARE_RETRY)
|
|
134148
134158
|
|| (rc==SQLITE_SCHEMA && (sqlite3ResetOneSchema(db,-1), cnt++)==0) );
|
|
134149
134159
|
sqlite3BtreeLeaveAll(db);
|
|
134150
134160
|
rc = sqlite3ApiExit(db, rc);
|
|
@@ -148822,6 +148832,7 @@ static void preserveExpr(IdxExprTrans *pTrans, Expr *pExpr){
|
|
|
148822
148832
|
static int whereIndexExprTransNode(Walker *p, Expr *pExpr){
|
|
148823
148833
|
IdxExprTrans *pX = p->u.pIdxTrans;
|
|
148824
148834
|
if( sqlite3ExprCompare(0, pExpr, pX->pIdxExpr, pX->iTabCur)==0 ){
|
|
148835
|
+
pExpr = sqlite3ExprSkipCollate(pExpr);
|
|
148825
148836
|
preserveExpr(pX, pExpr);
|
|
148826
148837
|
pExpr->affExpr = sqlite3ExprAffinity(pExpr);
|
|
148827
148838
|
pExpr->op = TK_COLUMN;
|
|
@@ -148981,6 +148992,8 @@ static SQLITE_NOINLINE void filterPullDown(
|
|
|
148981
148992
|
/* ,--- Because sqlite3ConstructBloomFilter() has will not have set
|
|
148982
148993
|
** vvvvv--' pLevel->regFilter if this were true. */
|
|
148983
148994
|
if( NEVER(pLoop->prereq & notReady) ) continue;
|
|
148995
|
+
assert( pLevel->addrBrk==0 );
|
|
148996
|
+
pLevel->addrBrk = addrNxt;
|
|
148984
148997
|
if( pLoop->wsFlags & WHERE_IPK ){
|
|
148985
148998
|
WhereTerm *pTerm = pLoop->aLTerm[0];
|
|
148986
148999
|
int regRowid;
|
|
@@ -149007,6 +149020,7 @@ static SQLITE_NOINLINE void filterPullDown(
|
|
|
149007
149020
|
VdbeCoverage(pParse->pVdbe);
|
|
149008
149021
|
}
|
|
149009
149022
|
pLevel->regFilter = 0;
|
|
149023
|
+
pLevel->addrBrk = 0;
|
|
149010
149024
|
}
|
|
149011
149025
|
}
|
|
149012
149026
|
|
|
@@ -234606,7 +234620,7 @@ static void fts5SourceIdFunc(
|
|
|
234606
234620
|
){
|
|
234607
234621
|
assert( nArg==0 );
|
|
234608
234622
|
UNUSED_PARAM2(nArg, apUnused);
|
|
234609
|
-
sqlite3_result_text(pCtx, "fts5: 2022-
|
|
234623
|
+
sqlite3_result_text(pCtx, "fts5: 2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe", -1, SQLITE_TRANSIENT);
|
|
234610
234624
|
}
|
|
234611
234625
|
|
|
234612
234626
|
/*
|
|
@@ -239735,9 +239749,9 @@ SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; }
|
|
|
239735
239749
|
|
|
239736
239750
|
#define SQLITE3MC_VERSION_MAJOR 1
|
|
239737
239751
|
#define SQLITE3MC_VERSION_MINOR 4
|
|
239738
|
-
#define SQLITE3MC_VERSION_RELEASE
|
|
239752
|
+
#define SQLITE3MC_VERSION_RELEASE 3
|
|
239739
239753
|
#define SQLITE3MC_VERSION_SUBRELEASE 0
|
|
239740
|
-
#define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.4.
|
|
239754
|
+
#define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.4.3"
|
|
239741
239755
|
|
|
239742
239756
|
#endif /* SQLITE3MC_VERSION_H_ */
|
|
239743
239757
|
/*** End of #include "sqlite3mc_version.h" ***/
|
|
@@ -239896,9 +239910,9 @@ extern "C" {
|
|
|
239896
239910
|
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
|
239897
239911
|
** [sqlite_version()] and [sqlite_source_id()].
|
|
239898
239912
|
*/
|
|
239899
|
-
#define SQLITE_VERSION "3.38.
|
|
239900
|
-
#define SQLITE_VERSION_NUMBER
|
|
239901
|
-
#define SQLITE_SOURCE_ID "2022-
|
|
239913
|
+
#define SQLITE_VERSION "3.38.5"
|
|
239914
|
+
#define SQLITE_VERSION_NUMBER 3038005
|
|
239915
|
+
#define SQLITE_SOURCE_ID "2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe"
|
|
239902
239916
|
|
|
239903
239917
|
/*
|
|
239904
239918
|
** CAPI3REF: Run-Time Library Version Numbers
|
|
@@ -262721,7 +262735,7 @@ sqlite3mcBtreeSetPageSize(Btree* p, int pageSize, int nReserve, int iFix)
|
|
|
262721
262735
|
** Change 4: Call sqlite3mcBtreeSetPageSize instead of sqlite3BtreeSetPageSize for main database
|
|
262722
262736
|
** (sqlite3mcBtreeSetPageSize allows to reduce the number of reserved bytes)
|
|
262723
262737
|
**
|
|
262724
|
-
** This code is generated by the script rekeyvacuum.sh from SQLite version 3.38.
|
|
262738
|
+
** This code is generated by the script rekeyvacuum.sh from SQLite version 3.38.5 amalgamation.
|
|
262725
262739
|
*/
|
|
262726
262740
|
SQLITE_PRIVATE SQLITE_NOINLINE int sqlite3mcRunVacuumForRekey(
|
|
262727
262741
|
char **pzErrMsg, /* Write error message here */
|
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 3
|
|
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.3"
|
|
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.38.
|
|
196
|
-
#define SQLITE_VERSION_NUMBER
|
|
197
|
-
#define SQLITE_SOURCE_ID "2022-
|
|
195
|
+
#define SQLITE_VERSION "3.38.5"
|
|
196
|
+
#define SQLITE_VERSION_NUMBER 3038005
|
|
197
|
+
#define SQLITE_SOURCE_ID "2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe"
|
|
198
198
|
|
|
199
199
|
/*
|
|
200
200
|
** CAPI3REF: Run-Time Library Version Numbers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-sqlite3-multiple-ciphers",
|
|
3
|
-
"version": "7.5.2-beta.
|
|
3
|
+
"version": "7.5.2-beta.3",
|
|
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>",
|