alasql 2.1.0 → 2.1.2
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/bin/alasql-cli.js +4 -3
- package/dist/alasql-worker.js +2 -2
- package/dist/alasql-worker.min.js +1 -1
- package/dist/alasql.fs.js +4 -5
- package/dist/alasql.js +4 -5
- package/dist/alasql.min.js +2 -2
- package/package.json +10 -11
- package/dist/alasql-echo.js~7d0ef547 (Added test for OUTER JOIN with missing ids) +0 -18
- package/dist/alasql-prolog.js~7d0ef547 (Added test for OUTER JOIN with missing ids) +0 -40
- package/dist/alasql-worker.js~7d0ef547 (Added test for OUTER JOIN with missing ids) +0 -245
- package/dist/alasql-worker.min.js~7d0ef547 (Added test for OUTER JOIN with missing ids) +0 -2
- package/dist/alasql.d.ts~7d0ef547 (Added test for OUTER JOIN with missing ids) +0 -84
- package/dist/alasql.fs.js~7d0ef547 (Added test for OUTER JOIN with missing ids) +0 -19776
- package/dist/alasql.js~7d0ef547 (Added test for OUTER JOIN with missing ids) +0 -19771
- package/dist/alasql.min.js~7d0ef547 (Added test for OUTER JOIN with missing ids) +0 -16
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ var res = alasql("SELECT * FROM cities WHERE pop < 3500000 ORDER BY pop DESC");
|
|
|
54
54
|
// res = [ { "city": "Madrid", "pop": 3041579 }, { "city": "Paris", "pop": 2249975 } ]
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
[Live Demo](
|
|
57
|
+
[Live Demo](https://jsfiddle.net/jqk80ard/)
|
|
58
58
|
|
|
59
59
|
#### Array of Objects
|
|
60
60
|
|
|
@@ -66,7 +66,7 @@ var res = alasql('SELECT a, SUM(b) AS b FROM ? GROUP BY a',[data]);
|
|
|
66
66
|
// res = [ { "a": 1, "b": 40},{ "a": 2, "b": 20 } ]
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
[Live Demo](
|
|
69
|
+
[Live Demo](https://jsfiddle.net/8brvex4f/)
|
|
70
70
|
|
|
71
71
|
#### Spreadsheet
|
|
72
72
|
|
|
@@ -653,4 +653,4 @@ and other people for useful tools, which make our work much easier.
|
|
|
653
653
|
|
|
654
654
|
----
|
|
655
655
|
<a href="http://alasql.org"><img src="https://cloud.githubusercontent.com/assets/1063454/14003946/d6e5c076-f156-11e5-8238-e62d2a8d20dc.png" align="right" alt="AlaSQL logo"/></a>
|
|
656
|
-
© 2014-
|
|
656
|
+
© 2014-2022, Andrey Gershun (agershun@gmail.com) & Mathias Rangel Wulff (m@rawu.dk)
|
package/bin/alasql-cli.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
|
|
2
3
|
//
|
|
3
4
|
// Command line interface for Alasql
|
|
4
|
-
// Version: 0.2.
|
|
5
|
+
// Version: 0.2.3
|
|
5
6
|
// Date: 28.07.2015
|
|
6
|
-
// (c) 2014-
|
|
7
|
+
// (c) 2014-2022, Andrey Gershun & Mathias Wulff
|
|
7
8
|
//
|
|
8
9
|
|
|
9
|
-
let alasql = require('alasql');
|
|
10
|
+
let alasql = require('../dist/alasql.fs.js');
|
|
10
11
|
let path = require('path');
|
|
11
12
|
let fs = require('fs');
|
|
12
13
|
let stdin = process.openStdin();
|
package/dist/alasql-worker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//! AlaSQL v2.1.
|
|
1
|
+
//! AlaSQL v2.1.2-develop-f4c12fe0 | © 2014-2022 Andrey Gershun & Mathias Wulff | License: MIT
|
|
2
2
|
/*
|
|
3
3
|
@module alasql
|
|
4
|
-
@version 2.1.
|
|
4
|
+
@version 2.1.2-develop-f4c12fe0
|
|
5
5
|
|
|
6
6
|
AlaSQL - JavaScript SQL database
|
|
7
7
|
© 2014-2016 Andrey Gershun & Mathias Rangel Wulff
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
//! AlaSQL v2.1.
|
|
1
|
+
//! AlaSQL v2.1.2-develop-f4c12fe0 | © 2014-2022 Andrey Gershun & Mathias Wulff | License: MIT
|
|
2
2
|
!function(r,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():r.alasql=e()}(this,function(){function i(r,e,o){"function"==typeof(e=e||[])&&(scope=o,o=e,e=[]),"object"!=typeof e&&(e=[e]);var t=i.lastid++;i.buffer[t]=o,i.webworker.postMessage({id:t,sql:r,params:e})}var a;if(i.options={},i.options.progress=function(){},isArray=function(r){return"[object Array]"===Object.prototype.toString.call(r)},i.promise=function(){throw new Error("Please include a Promise/A+ library")},"undefined"!=typeof Promise&&(a=function(r,e,n,s){return new Promise(function(o,t){i(r,e,function(r,e){e?t(e):(n&&s&&!1!==i.options.progress&&i.options.progress(n,s),o(r))})})},i.promise=function(r,e){if("undefined"==typeof Promise)throw new Error("Please include a Promise/A+ library");if("string"==typeof r)return a(r,e);if(!isArray(r)||r.length<1||void 0!==e)throw new Error("Error in .promise parameters");var o=r;if(!(o.length<1)){for(var t,n,s=[],i=0;i<o.length;i++){if("string"==typeof(n=o[i])&&(n=[n]),!isArray(n)||n.length<1||2<n.length)throw new Error("Error in .promise parameter");t=n[0],n=n[1]||void 0,s.push(a(t,n,i,o.length))}return Promise.all(s)}}),i=i||!1)return i.worker=function(){throw new Error("Can find webworker in this enviroment")},"undefined"!=typeof Worker&&(i.worker=function(r,e,o){if(void 0===(r=!0===r?void 0:r))for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n++){if("alasql-worker.js"===t[n].src.substr(-16).toLowerCase()){r=t[n].src.substr(0,t[n].src.length-16)+"alasql.js";break}if("alasql-worker.min.js"===t[n].src.substr(-20).toLowerCase()){r=t[n].src.substr(0,t[n].src.length-20)+"alasql.min.js";break}if("alasql.js"===t[n].src.substr(-9).toLowerCase()){r=t[n].src;break}if("alasql.min.js"===t[n].src.substr(-13).toLowerCase()){r=t[n].src.substr(0,t[n].src.length-13)+"alasql.min.js";break}}if(void 0===r)throw new Error("Path to alasql.js is not specified");var s;!1!==r?(s=(s="importScripts('")+r+"');self.onmessage = function(event) {alasql(event.data.sql,event.data.params, function(data){postMessage({id:event.data.id, data:data});});}",s=new Blob([s],{type:"text/plain"}),i.webworker=new Worker(URL.createObjectURL(s)),i.webworker.onmessage=function(r){var e=r.data.id;i.buffer[e](r.data.data),delete i.buffer[e]},i.webworker.onerror=function(r){throw r},1<arguments.length&&i("REQUIRE "+e.map(function(r){return'"'+r+'"'}).join(","),[],o)):!1===r&&delete i.webworker}),i.lastid=0,i.buffer={},i.worker(),i;throw new Error("alasql was not found")});
|
package/dist/alasql.fs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//! AlaSQL v2.1.
|
|
1
|
+
//! AlaSQL v2.1.2-develop-f4c12fe0 | © 2014-2022 Andrey Gershun & Mathias Wulff | License: MIT
|
|
2
2
|
/*
|
|
3
3
|
@module alasql
|
|
4
|
-
@version 2.1.
|
|
4
|
+
@version 2.1.2-develop-f4c12fe0
|
|
5
5
|
|
|
6
6
|
AlaSQL - JavaScript SQL database
|
|
7
7
|
© 2014-2016 Andrey Gershun & Mathias Rangel Wulff
|
|
@@ -142,7 +142,7 @@ var alasql = function(sql, params, cb, scope) {
|
|
|
142
142
|
Current version of alasql
|
|
143
143
|
@constant {string}
|
|
144
144
|
*/
|
|
145
|
-
alasql.version = '2.1.
|
|
145
|
+
alasql.version = '2.1.2-develop-f4c12fe0';
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
Debug flag
|
|
@@ -9198,8 +9198,7 @@ yy.Select.prototype.compileGroup = function (query) {
|
|
|
9198
9198
|
colas +
|
|
9199
9199
|
"'][" +
|
|
9200
9200
|
colexp +
|
|
9201
|
-
']))
|
|
9202
|
-
{';
|
|
9201
|
+
'])) {';
|
|
9203
9202
|
var post = "g['$$_VALUES_" + colas + "'][" + colexp + ']=true;}';
|
|
9204
9203
|
}
|
|
9205
9204
|
if (col.aggregatorid === 'SUM') {
|
package/dist/alasql.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//! AlaSQL v2.1.
|
|
1
|
+
//! AlaSQL v2.1.2-develop-f4c12fe0 | © 2014-2022 Andrey Gershun & Mathias Wulff | License: MIT
|
|
2
2
|
/*
|
|
3
3
|
@module alasql
|
|
4
|
-
@version 2.1.
|
|
4
|
+
@version 2.1.2-develop-f4c12fe0
|
|
5
5
|
|
|
6
6
|
AlaSQL - JavaScript SQL database
|
|
7
7
|
© 2014-2016 Andrey Gershun & Mathias Rangel Wulff
|
|
@@ -142,7 +142,7 @@ var alasql = function(sql, params, cb, scope) {
|
|
|
142
142
|
Current version of alasql
|
|
143
143
|
@constant {string}
|
|
144
144
|
*/
|
|
145
|
-
alasql.version = '2.1.
|
|
145
|
+
alasql.version = '2.1.2-develop-f4c12fe0';
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
Debug flag
|
|
@@ -9193,8 +9193,7 @@ yy.Select.prototype.compileGroup = function (query) {
|
|
|
9193
9193
|
colas +
|
|
9194
9194
|
"'][" +
|
|
9195
9195
|
colexp +
|
|
9196
|
-
']))
|
|
9197
|
-
{';
|
|
9196
|
+
'])) {';
|
|
9198
9197
|
var post = "g['$$_VALUES_" + colas + "'][" + colexp + ']=true;}';
|
|
9199
9198
|
}
|
|
9200
9199
|
if (col.aggregatorid === 'SUM') {
|