alasql 0.3.9 → 0.3.11

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.
Files changed (53) hide show
  1. package/bin/alasql-cli.js +1 -1
  2. package/dist/alasql-worker.js +2 -2
  3. package/dist/alasql-worker.min.js +1 -1
  4. package/dist/alasql.fs.js +11231 -11231
  5. package/dist/alasql.js +17 -17
  6. package/dist/alasql.min.js +2 -16
  7. package/package.json +1 -1
  8. package/.npmignore +0 -15
  9. package/utils/2ch/2ch.js +0 -69
  10. package/utils/2ch/README.md +0 -3
  11. package/utils/2repl.js +0 -21
  12. package/utils/README.md +0 -16
  13. package/utils/a.a +0 -0
  14. package/utils/a.jison +0 -2455
  15. package/utils/a.js +0 -2546
  16. package/utils/a1.html +0 -120
  17. package/utils/abc.tsv +0 -4
  18. package/utils/callback/cb1.js +0 -59
  19. package/utils/callback/cb2.js +0 -45
  20. package/utils/closure/README.md +0 -1
  21. package/utils/closure/compiler.jar +0 -0
  22. package/utils/cordova/alasql-cordova.js +0 -134
  23. package/utils/cordova/filestorage.js +0 -138
  24. package/utils/cordova/test.js +0 -5
  25. package/utils/cordova/test1.js +0 -27
  26. package/utils/cordova/test1.json +0 -1
  27. package/utils/d31/1.html +0 -133
  28. package/utils/d31/2.html +0 -130
  29. package/utils/d31/3.html +0 -131
  30. package/utils/d31/5.html +0 -133
  31. package/utils/d31/d3.v3.min.js +0 -5
  32. package/utils/d31/force.csv +0 -29
  33. package/utils/d31/forcerus.csv +0 -29
  34. package/utils/d31/index.html +0 -120
  35. package/utils/d3graph/index.html +0 -98
  36. package/utils/d3graph/links.json +0 -58
  37. package/utils/d3graph/nodes.json +0 -38
  38. package/utils/graph/CREATE CLASS G1 +0 -39
  39. package/utils/graph/README.md +0 -3
  40. package/utils/graph/idea.txt +0 -22
  41. package/utils/graph/ides 150428.txt +0 -24
  42. package/utils/graph/index.html +0 -68
  43. package/utils/graph/miserables.json +0 -337
  44. package/utils/indexeddb/index.html +0 -24
  45. package/utils/main.html +0 -207
  46. package/utils/mainww.html +0 -9
  47. package/utils/mainww1.html +0 -15
  48. package/utils/minisql/minisql.js +0 -377
  49. package/utils/redj/README.md +0 -10
  50. package/utils/redj/redj.js +0 -44
  51. package/utils/test.js +0 -6
  52. package/utils/testbench.html +0 -15
  53. package/utils/testbench.worker.html +0 -15
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "alasql",
3
3
  "description": "Versatile SQL database for browser or node. Handles relational data and nested JSON (noSQL). Export to and import from Excel, localStorage or IndexedDB",
4
- "version": "0.3.9",
4
+ "version": "0.3.11",
5
5
  "author": "Andrey Gershun <agershun@gmail.com>",
6
6
  "contributors": [
7
7
  {
package/.npmignore DELETED
@@ -1,15 +0,0 @@
1
- console/
2
- examples/
3
- lib/
4
- partners/
5
- test/
6
- src/
7
- *.md
8
- .bithoundrc
9
- .codeclimate.yml
10
- .gitattributes
11
- .gitignore
12
- .jshintrc
13
- bower.json
14
- gulpfile.js
15
- inch.json
package/utils/2ch/2ch.js DELETED
@@ -1,69 +0,0 @@
1
- var fs = require('fs');
2
- var alasql = require('..');
3
- var s = fs.readFileSync('../dist/alasql.min.js').toString();
4
-
5
- var state = "ANY";
6
- var idx = 0;
7
- var ilen = s.length;
8
- var w = '';
9
- var dict = {};
10
- var dotdict = {};
11
-
12
- for(var i=0; i<ilen;i++) {
13
- var ch = s[i];
14
- var a = ch.toUpperCase();
15
- if(state == "ANY") {
16
- if(ch == '.') {
17
- state="DOTLITERAL";
18
- w += '.';
19
- continue;
20
- } else if((a >= 'A' && a <= 'Z') || (a == '_')) {
21
- state="LITERAL";
22
- w += ch;
23
- continue;
24
- } else {
25
- state = 'ANY';
26
- w = '';
27
- continue;
28
- }
29
- } else if(state == "LITERAL") {
30
- if(ch == '.') {
31
- state="DOTLITERAL";
32
- w = '.';
33
- continue;
34
- } else if((a >= 'A' && a <= 'Z') || (a >= '0' && a <= '9') || (a == '_')) {
35
- state="LITERAL";
36
- w += ch;
37
- continue;
38
- } else {
39
- state = 'ANY';
40
- if(w.length > 1) {
41
- dict["_"+w] = (dict["_"+w]||0)+1;
42
- }
43
- w = '';
44
- continue;
45
- }
46
- } else if(state == "DOTLITERAL") {
47
- if((a >= 'A' && a <= 'Z') || (a >= '0' && a <= '9') || (a == '_')) {
48
- state="DOTLITERAL";
49
- w += ch;
50
- continue;
51
- } else {
52
- state = 'ANY';
53
- dotdict["_"+w] = (dotdict["_"+w]||0)+1;
54
- w = '';
55
- continue;
56
- }
57
- }
58
- };
59
-
60
- console.log(alasql('SELECT TOP 20 [0] AS w, [1] as q, \
61
- (LEN([0])-2)*[1] as e FROM ? WHERE LEN([0])>5 ORDER BY e DESC',[dict]));
62
-
63
- console.log(alasql('SELECT TOP 20 [0] AS w, [1] as q, \
64
- (LEN([0])-3)*[1] as e FROM ? \
65
- WHERE LEN([0])>3 ORDER BY e DESC',[dotdict]));
66
-
67
- console.log(alasql('SELECT SUM((LEN([0])-2)*[1]) as e FROM ? WHERE LEN([0])>5 ',[dict]));
68
- console.log(alasql('SELECT SUM((LEN([0])-3)*[1]) as e FROM ? WHERE LEN([0])>5 ',[dotdict]));
69
-
@@ -1,3 +0,0 @@
1
- # 2ch.js
2
-
3
- Utility to reduce long veriables names
package/utils/2repl.js DELETED
@@ -1,21 +0,0 @@
1
- var fs = require('fs');
2
- var alasql = require('..');
3
- var s1 = fs.readFileSync('../dist/alasql.min.js').toString();
4
- var len1 = s1.length;
5
-
6
- var dict = {
7
- "toJavaScript":"JS",
8
- "databases":"DB",
9
- "expression": 'EX',
10
- "extend": 'X',
11
- "ParamValue": 'PV',
12
- };
13
-
14
- for(var d in dict) {
15
- s2 = s1.replace(new RegExp('/.'+d,'g'),'.'+dict[d]);
16
- }
17
-
18
- var len2 = s2.length;
19
-
20
-
21
- console.log(len1,len2)
package/utils/README.md DELETED
@@ -1,16 +0,0 @@
1
- # AlaSQL development utilities
2
-
3
- This is a space for some utulities to be used in AlaSQL development
4
-
5
- ## 2ch
6
-
7
- Some names in the source code have to much charaters, like '.toJavaScript()'.
8
- This utility helps to identify the most frequent names and replace some of them
9
- with short 2 characters analogues, like:
10
- * .toJavaScript() -> .JS()
11
- * CreateView -> CV
12
- * CreateVertex -> CX
13
-
14
- All pairs will be selected manually to prevent errors (e.g. replace JavaScript keywords)
15
-
16
- Accoring preliminary calculations, this will help to save up to 50-70kb (20% size of the library).
package/utils/a.a DELETED
File without changes