sqlmath 2022.3.5 → 2022.6.30
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/.npmignore +2 -0
- package/CHANGELOG.md +75 -0
- package/LICENSE +2 -2
- package/README.md +25 -3
- package/_binary_sqlmath_napi8_darwin_x64.node +0 -0
- package/_binary_sqlmath_napi8_linux_x64.node +0 -0
- package/_binary_sqlmath_napi8_win32_x64.node +0 -0
- package/_binary_sqlmath_shell_darwin_x64 +0 -0
- package/_binary_sqlmath_shell_linux_x64 +0 -0
- package/_binary_sqlmath_shell_win32_x64.exe +0 -0
- package/jslint.mjs +647 -291
- package/package.json +6 -6
- package/sqlmath.mjs +845 -1761
- package/sqlmath_custom.mjs +4 -0
package/.npmignore
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,83 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
# Todo
|
|
4
|
+
- add dbtable-crud-operations dbtableOpenCsv, dbtableOpenJson
|
|
5
|
+
- sqlmath - add sql-extension carrayblob()
|
|
4
6
|
- none
|
|
5
7
|
|
|
8
|
+
# v2022.6.30
|
|
9
|
+
- add dbtable-crud-operations dbtableRename, dbcolumnAdd, dbcolumnRename, dbcolumnDrop
|
|
10
|
+
- demo - add web-demo in README.md
|
|
11
|
+
- webapp - add ui-loading when running onDbAction(), onDbExec()
|
|
12
|
+
- add dbtable-crud-operations dbquerySaveCsv, dbquerySaveJson, dbtableDrop, dbtableSaveCsv, dbtableSaveJson
|
|
13
|
+
- add contextmenu and dbtable-crud-operation dbtableDrop
|
|
14
|
+
- add database-crud-operations
|
|
15
|
+
- merge rendering of sql-queries and sql-tables into one
|
|
16
|
+
- optimization - defer rendering data in dttable until you scroll into it in viewport
|
|
17
|
+
- add modal to display sql-query errors
|
|
18
|
+
- bugfix - fix broken sorting
|
|
19
|
+
- merge datatables css into file index.html
|
|
20
|
+
- merge datatables code into file sqlmath_browser.mjs and remove jquery-dependency
|
|
21
|
+
- bugfix - fix ci-function shCiBuildWasm() not updating output sqlmath_wasm.wasm
|
|
22
|
+
- wasm - rewrite file sqlmath_wrapper_wasm.js to pass jslint
|
|
23
|
+
- datatables - rewrite datatables-function _fnDraw() for faster rendering
|
|
24
|
+
- sqlmath - milestone - functional index.html
|
|
25
|
+
- add files asset_sqlmath_external_rollup.css, asset_sqlmath_external_rollup.js
|
|
26
|
+
- bugfix - fix memory-leak by replacing all free()/malloc() with sqlite3_free()/sqlite3_malloc()
|
|
27
|
+
- wasm - update functions dbFileExportAsync(), dbFileImportAsync() to be able to export/import raw-db-arraybuffer
|
|
28
|
+
- remove obsolete csv-json-import functions like dbTableInsert(), superseded by json_each()
|
|
29
|
+
- wasm - update function dbOpen() to be able to import raw dbData arraybuffer
|
|
30
|
+
- merge function dbExecWithRetryAsync() into dbExecAsync()
|
|
31
|
+
- rename function dbMemoryLoadOrSave to dbFileImportOrExport()
|
|
32
|
+
- add file csslint.js
|
|
33
|
+
- wasm - replace sqljs-api with sqlmath-api in wasm - part1
|
|
34
|
+
- remove jslint-dependency in sqlmath-core to prepare sqlmath for browser/wasm env
|
|
35
|
+
- emscripten updated to v3.1.3, allowing es6 syntax in sqlmath_wrapper_wasm.js
|
|
36
|
+
- jenks - streamline jenksCreate() return object to simple double-array instead of struct
|
|
37
|
+
- jenks - inline jenks-function jenksCalcRange() from recursion to iteration
|
|
38
|
+
- jenks - optimize jenks-function jenksCalcRange() from recursion to iteration
|
|
39
|
+
- jenks - replace class-based api with static-function
|
|
40
|
+
- jsbaton - migrate function dbExec() to new unified jsbaton
|
|
41
|
+
- error - add sqlite errcode SQLITE_ERROR_ZSQL_NULL
|
|
42
|
+
- jsbaton - migrate function dbTableInsert() to new unified jsbaton
|
|
43
|
+
- jsbaton - migrate functions dbClose(), dbMemoryLoadOrSave(), dbNoop(), dbOpen() to new, streamlined jsbaton2
|
|
44
|
+
- add js-function jsbatonPushValue() to dynamically push value to jsbaton
|
|
45
|
+
- napi - decouple c-functions dbClose(), dbExec(), dbMemoryLoadOrSave(), dbNoop(), dbOpen(), dbTableInsert() from napi
|
|
46
|
+
- perf - reduce unnecessary copying, replacing SQLITE_TRANSIENT with SQLITE_STATIC
|
|
47
|
+
- sqlmath - wrap c-functions jsonInit(), jsonInitNoContext() with jsonInit2() that auto jsonGrow/malloc str99->zBuf
|
|
48
|
+
- sqlmath - streamline function cCall() to cCallAsync(), which only returns a promise
|
|
49
|
+
- wasm - migrate from sqljs-api to sqlmath-api in wasm - part1
|
|
50
|
+
- gc - replace node-specific-gc __dbFinalizerCreate() with more-webassembly-friendly FinalizationRegistry()
|
|
51
|
+
- sqlmath - add sql-extension copyblob(), matrix2d_concat()
|
|
52
|
+
- sqlmath - re-include carray-extension
|
|
53
|
+
|
|
54
|
+
# v2022.5.20
|
|
55
|
+
- sqlite - update to sqlite v3.38.5
|
|
56
|
+
- sqlmath - add sql-functions castrealorzero(), casttextorempty()
|
|
57
|
+
- sqlmath - migrate test to jsTestXxx
|
|
58
|
+
- jslint - update jslint v2022.05.13
|
|
59
|
+
|
|
60
|
+
# v2022.4.28
|
|
61
|
+
- jslint - update jslint v2022.4.28
|
|
62
|
+
- sqlite - update to sqlite v3.38.2
|
|
63
|
+
- sqlmath - bugfix - fix crash from sql-fnc kthpercentile(), when passed with empty-list
|
|
64
|
+
|
|
65
|
+
# v2022.3.20
|
|
66
|
+
- sqlmath - add builtin sql-function jenks() which is a fast 1d, ml classifier
|
|
67
|
+
- sqlmath - merge/streamline buildstep sqlmath_custom.c into sqlmath_base.c
|
|
68
|
+
- sqlmath - remove unused responseType = lastMatrixDouble
|
|
69
|
+
- sqlmath - export c-function dbExec to wasm
|
|
70
|
+
- sqlmath - replace Str99 with sqlite-builtin JsonString
|
|
71
|
+
- update to sqlite v3.38.1
|
|
72
|
+
- ci - add fileCount check
|
|
73
|
+
- sqlmath - re-enable building shell-executable
|
|
74
|
+
- sqlmath - use sqlite-builtin jsonstring instead of str99 for extension kthpercentile
|
|
75
|
+
- sqlmath - remove zlib.h and use handcoded headers instead
|
|
76
|
+
- split build-step sqlite3_c to sqlite3_c, sqlite3_ext_c, to deduplicate definition SQLITE3_C2
|
|
77
|
+
- add shell-function shCiBuildWasm() to build wasm binaries with online demo spa.sqlchart.html
|
|
78
|
+
- update to sqlite v3.38.0
|
|
79
|
+
- create github-branch-artifact to upload shared binaries
|
|
80
|
+
|
|
6
81
|
# v2022.3.5
|
|
7
82
|
- update jslint v2022.2.20
|
|
8
83
|
- add sqlite-function RANDOM1() generating random-float between 0 <= xx < 1
|
package/LICENSE
CHANGED
|
@@ -7,8 +7,8 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
7
7
|
copies of the Software, and to permit persons to whom the Software is
|
|
8
8
|
furnished to do so, subject to the following conditions:
|
|
9
9
|
|
|
10
|
-
The above copyright notice and this permission notice shall be included in
|
|
11
|
-
copies or substantial portions of the Software.
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
12
|
|
|
13
13
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
14
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
package/README.md
CHANGED
|
@@ -2,19 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
# Status
|
|
5
|
-
| Branch | [master<br>(v2022.
|
|
5
|
+
| Branch | [master<br>(v2022.6.30)](https://github.com/sqlmath/sqlmath/tree/master) | [beta<br>(Web Demo)](https://github.com/sqlmath/sqlmath/tree/beta) | [alpha<br>(Development)](https://github.com/sqlmath/sqlmath/tree/alpha) |
|
|
6
6
|
|--:|:--:|:--:|:--:|
|
|
7
7
|
| CI | [](https://github.com/sqlmath/sqlmath/actions?query=branch%3Amaster) | [](https://github.com/sqlmath/sqlmath/actions?query=branch%3Abeta) | [](https://github.com/sqlmath/sqlmath/actions?query=branch%3Aalpha) |
|
|
8
8
|
| Coverage | [](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/index.html) | [](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/index.html) | [](https://sqlmath.github.io/sqlmath/branch-alpha/.artifact/coverage/index.html) |
|
|
9
|
+
| Demo | [<img src="asset_image_github_brands.svg" height="32">](https://sqlmath.github.io/sqlmath/branch-master/index.html) | [<img src="asset_image_github_brands.svg" height="32">](https://sqlmath.github.io/sqlmath/branch-beta/index.html) | [<img src="asset_image_github_brands.svg" height="32">](https://sqlmath.github.io/sqlmath/branch-alpha/index.html) |
|
|
9
10
|
| Artifacts | [<img src="asset_image_folder_open_solid.svg" height="30">](https://github.com/sqlmath/sqlmath/tree/gh-pages/branch-master/.artifact) | [<img src="asset_image_folder_open_solid.svg" height="30">](https://github.com/sqlmath/sqlmath/tree/gh-pages/branch-beta/.artifact) | [<img src="asset_image_folder_open_solid.svg" height="30">](https://github.com/sqlmath/sqlmath/tree/gh-pages/branch-alpha/.artifact) |
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
<br><br>
|
|
13
14
|
# Table of Contents
|
|
14
15
|
|
|
15
|
-
1. [
|
|
16
|
+
1. [Web Demo](#web-demo)
|
|
16
17
|
|
|
17
|
-
2. [
|
|
18
|
+
2. [Package Listing](#package-listing)
|
|
19
|
+
|
|
20
|
+
3. [Changelog](#changelog)
|
|
21
|
+
|
|
22
|
+
4. [License](#license)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<br><br>
|
|
26
|
+
# Web Demo
|
|
27
|
+
- https://sqlmath.github.io/sqlmath/index.html
|
|
28
|
+
|
|
29
|
+
[](https://sqlmath.github.io/sqlmath/index.html)
|
|
18
30
|
|
|
19
31
|
|
|
20
32
|
<br><br>
|
|
@@ -27,3 +39,13 @@
|
|
|
27
39
|
- [Full CHANGELOG.md](CHANGELOG.md)
|
|
28
40
|
|
|
29
41
|

|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
<br><br>
|
|
45
|
+
# License
|
|
46
|
+
- SQLite is under [public domain](https://www.sqlite.org/copyright.html).
|
|
47
|
+
- JSLint is under [Unlicense License](https://github.com/jslint-org/jslint/blob/master/LICENSE).
|
|
48
|
+
- [cpplint.py](cpplint.py) is under [BSD 3-clause license](https://github.com/cpplint/cpplint/blob/develop/LICENSE).
|
|
49
|
+
- [indent.exe](indent.exe) is under [GPLv3 License](https://www.gnu.org/licenses/gpl-3.0.txt).
|
|
50
|
+
- [sqlmath_jenks.c](sqlmath_jenks.c) is derived from [GPLv3 licensed CalcNaturalBreaks](https://www.geodms.nl/CalcNaturalBreaks).
|
|
51
|
+
- Everything else is under MIT License.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|