sqlmath 2024.7.28 → 2024.8.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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  # Todo
4
4
  - none
5
5
 
6
+ # v2024.8.30
7
+ - betadog - Re-introduce trading of sp500 stocks.
8
+ - lgbm - Make loading of lightgbm-library optional, only loading if file exists.
9
+
6
10
  # v2024.7.28
7
11
  - sqlmath - Update sql-function LGBM_PREDICTFORTABLE() to allow multiclass.
8
12
  - lgbm - Upgrade to lightgbm-v4.5.0.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  # Status
5
- | Branch | [master<br>(v2024.7.28)](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) |
5
+ | Branch | [master<br>(v2024.8.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 | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Amaster) | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=beta)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Abeta) | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=alpha)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Aalpha) |
8
8
  | Coverage | [![coverage](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/index.html) | [![coverage](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/index.html) | [![coverage](https://sqlmath.github.io/sqlmath/branch-alpha/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-alpha/.artifact/coverage/index.html) |
@@ -121,11 +121,11 @@ PORT=8080 sh jslint_ci.sh shHttpFileServer
121
121
  ```shell
122
122
  python -m build
123
123
  #
124
- twine upload --repository testpypi dist/sqlmath-2024.7.28*
125
- py -m pip install --index-url https://test.pypi.org/simple/ sqlmath==2024.7.28
124
+ twine upload --repository testpypi dist/sqlmath-2024.8.30*
125
+ py -m pip install --index-url https://test.pypi.org/simple/ sqlmath==2024.8.30
126
126
  #
127
- twine upload dist/sqlmath-2024.7.28*
128
- pip install sqlmath==2024.7.28
127
+ twine upload dist/sqlmath-2024.8.30*
128
+ pip install sqlmath==2024.8.30
129
129
  ```
130
130
 
131
131
 
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  },
39
39
  "shCiArtifactUpload": 1,
40
40
  "shCiPublishNpm": 1,
41
- "version": "2024.7.28"
41
+ "version": "2024.8.30"
42
42
  }
package/sqlmath.mjs CHANGED
@@ -122,7 +122,7 @@ let {
122
122
  let sqlMessageDict = {}; // dict of web-worker-callbacks
123
123
  let sqlMessageId = 0;
124
124
  let sqlWorker;
125
- let version = "v2024.7.28";
125
+ let version = "v2024.8.30";
126
126
 
127
127
  async function assertErrorThrownAsync(asyncFunc, regexp) {
128
128
 
@@ -931,10 +931,12 @@ async function dbOpenAsync({
931
931
  fileLgbm = fileLgbm.replace("win32", "lib_lightgbm.dll");
932
932
  fileLgbm = fileLgbm.replace(process.platform, "lib_lightgbm.so");
933
933
  fileLgbm = `${import.meta.dirname}/sqlmath/${fileLgbm}`;
934
- await dbExecAsync({
935
- db,
936
- sql: `SELECT lgbm_dlopen('${fileLgbm}');`
937
- });
934
+ await moduleFs.promises.access(fileLgbm).then(async function () {
935
+ await dbExecAsync({
936
+ db,
937
+ sql: `SELECT lgbm_dlopen('${fileLgbm}');`
938
+ });
939
+ }).catch(noop);
938
940
  }
939
941
  return db;
940
942
  }