better-sqlite3-multiple-ciphers 7.5.1-beta.2 → 7.5.2-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/copy.js +26 -0
- package/deps/download.sh +111 -111
- package/deps/setup.ps1 +1 -1
- package/deps/sqlite3/sqlite3.c +415 -178
- package/deps/sqlite3/sqlite3.h +14 -10
- package/deps/sqlite3.gyp +4 -4
- package/package.json +1 -1
- package/deps/symlink.js +0 -19
package/deps/sqlite3/sqlite3.h
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
** Purpose: SQLite3 Multiple Ciphers version numbers
|
|
21
21
|
** Author: Ulrich Telle
|
|
22
22
|
** Created: 2020-08-05
|
|
23
|
-
** Copyright: (c) 2020-
|
|
23
|
+
** Copyright: (c) 2020-2022 Ulrich Telle
|
|
24
24
|
** License: MIT
|
|
25
25
|
*/
|
|
26
26
|
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
#define SQLITE3MC_VERSION_H_
|
|
31
31
|
|
|
32
32
|
#define SQLITE3MC_VERSION_MAJOR 1
|
|
33
|
-
#define SQLITE3MC_VERSION_MINOR
|
|
34
|
-
#define SQLITE3MC_VERSION_RELEASE
|
|
33
|
+
#define SQLITE3MC_VERSION_MINOR 4
|
|
34
|
+
#define SQLITE3MC_VERSION_RELEASE 0
|
|
35
35
|
#define SQLITE3MC_VERSION_SUBRELEASE 0
|
|
36
|
-
#define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.
|
|
36
|
+
#define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.4.0"
|
|
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.2"
|
|
196
|
+
#define SQLITE_VERSION_NUMBER 3038002
|
|
197
|
+
#define SQLITE_SOURCE_ID "2022-03-26 13:51:10 d33c709cc0af66bc5b6dc6216eba9f1f0b40960b9ae83694c986fbf4c1d6f08f"
|
|
198
198
|
|
|
199
199
|
/*
|
|
200
200
|
** CAPI3REF: Run-Time Library Version Numbers
|
|
@@ -5025,6 +5025,10 @@ SQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);
|
|
|
5025
5025
|
** even empty strings, are always zero-terminated. ^The return
|
|
5026
5026
|
** value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer.
|
|
5027
5027
|
**
|
|
5028
|
+
** ^Strings returned by sqlite3_column_text16() always have the endianness
|
|
5029
|
+
** which is native to the platform, regardless of the text encoding set
|
|
5030
|
+
** for the database.
|
|
5031
|
+
**
|
|
5028
5032
|
** <b>Warning:</b> ^The object returned by [sqlite3_column_value()] is an
|
|
5029
5033
|
** [unprotected sqlite3_value] object. In a multithreaded environment,
|
|
5030
5034
|
** an unprotected sqlite3_value object may only be used safely with
|
|
@@ -5038,7 +5042,7 @@ SQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);
|
|
|
5038
5042
|
** [application-defined SQL functions] or [virtual tables], not within
|
|
5039
5043
|
** top-level application code.
|
|
5040
5044
|
**
|
|
5041
|
-
**
|
|
5045
|
+
** These routines may attempt to convert the datatype of the result.
|
|
5042
5046
|
** ^For example, if the internal representation is FLOAT and a text result
|
|
5043
5047
|
** is requested, [sqlite3_snprintf()] is used internally to perform the
|
|
5044
5048
|
** conversion automatically. ^(The following table details the conversions
|
|
@@ -5063,7 +5067,7 @@ SQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);
|
|
|
5063
5067
|
** <tr><td> TEXT <td> BLOB <td> No change
|
|
5064
5068
|
** <tr><td> BLOB <td> INTEGER <td> [CAST] to INTEGER
|
|
5065
5069
|
** <tr><td> BLOB <td> FLOAT <td> [CAST] to REAL
|
|
5066
|
-
** <tr><td> BLOB <td> TEXT <td>
|
|
5070
|
+
** <tr><td> BLOB <td> TEXT <td> [CAST] to TEXT, ensure zero terminator
|
|
5067
5071
|
** </table>
|
|
5068
5072
|
** </blockquote>)^
|
|
5069
5073
|
**
|
|
@@ -9813,7 +9817,7 @@ SQLITE_API int sqlite3_vtab_in_next(sqlite3_value *pVal, sqlite3_value **ppOut);
|
|
|
9813
9817
|
** ^When xBestIndex returns, the sqlite3_value object returned by
|
|
9814
9818
|
** sqlite3_vtab_rhs_value() is automatically deallocated.
|
|
9815
9819
|
**
|
|
9816
|
-
** The "_rhs_" in the name of this routine is an
|
|
9820
|
+
** The "_rhs_" in the name of this routine is an abbreviation for
|
|
9817
9821
|
** "Right-Hand Side".
|
|
9818
9822
|
*/
|
|
9819
9823
|
SQLITE_API int sqlite3_vtab_rhs_value(sqlite3_index_info*, int, sqlite3_value **ppVal);
|
package/deps/sqlite3.gyp
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
'conditions': [
|
|
15
15
|
['sqlite3 == ""', {
|
|
16
16
|
'actions': [{
|
|
17
|
-
'action_name': '
|
|
17
|
+
'action_name': 'copy_builtin_sqlite3',
|
|
18
18
|
'inputs': [
|
|
19
19
|
'sqlite3/sqlite3.c',
|
|
20
20
|
'sqlite3/sqlite3.h',
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
'<(SHARED_INTERMEDIATE_DIR)/sqlite3/sqlite3.h',
|
|
26
26
|
'<(SHARED_INTERMEDIATE_DIR)/sqlite3/sqlite3ext.h',
|
|
27
27
|
],
|
|
28
|
-
'action': ['node', '
|
|
28
|
+
'action': ['node', 'copy.js', '<(SHARED_INTERMEDIATE_DIR)/sqlite3', '', 'sqlite3.c', 'sqlite3.h', 'sqlite3ext.h'],
|
|
29
29
|
}],
|
|
30
30
|
}, {
|
|
31
31
|
'actions': [{
|
|
32
|
-
'action_name': '
|
|
32
|
+
'action_name': 'copy_custom_sqlite3',
|
|
33
33
|
'inputs': [
|
|
34
34
|
'<(sqlite3)/sqlite3.c',
|
|
35
35
|
'<(sqlite3)/sqlite3.h',
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
'<(SHARED_INTERMEDIATE_DIR)/sqlite3/sqlite3.c',
|
|
39
39
|
'<(SHARED_INTERMEDIATE_DIR)/sqlite3/sqlite3.h',
|
|
40
40
|
],
|
|
41
|
-
'action': ['node', '
|
|
41
|
+
'action': ['node', 'copy.js', '<(SHARED_INTERMEDIATE_DIR)/sqlite3', '<(sqlite3)', 'sqlite3.c', 'sqlite3.h'],
|
|
42
42
|
}],
|
|
43
43
|
}],
|
|
44
44
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-sqlite3-multiple-ciphers",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.2-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>",
|
package/deps/symlink.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
|
|
5
|
-
const dest = process.argv[2];
|
|
6
|
-
const source = path.resolve(path.sep, process.argv[3] || path.join(__dirname, 'sqlite3'));
|
|
7
|
-
const filenames = process.argv.slice(4).map(str => path.basename(str));
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
This creates symlinks inside the <$2> directory, linking to files inside the
|
|
11
|
-
directory specified by the absolute path <$3>. If no path <$3> is provided,
|
|
12
|
-
the default path of "./deps/sqlite3" is used. The basenames of the files to
|
|
13
|
-
link are specified by <$4...>.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
for (const filename of filenames) {
|
|
17
|
-
fs.accessSync(path.join(source, filename));
|
|
18
|
-
fs.symlinkSync(path.join(source, filename), path.join(dest, filename), 'file');
|
|
19
|
-
}
|