Skip to content

Commit c615f20

Browse files
committed
Merge branch 'release/0.1.2'
2 parents 9941350 + 45a017e commit c615f20

31 files changed

+3969
-1929
lines changed

.bower.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "alasql",
33
"description":"AlaSQL.js - JavaScript SQL database library for relational and graph data with support of localStorage, IndexedDB, and Excel",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"license": "MIT",
66
"keywords": [
77
"sql",
@@ -15,7 +15,6 @@
1515
"query",
1616
"localStorage",
1717
"IndexedDB",
18-
"DOM-storage",
1918
"SQLite",
2019
"JSON",
2120
"Excel",
@@ -31,9 +30,8 @@
3130
"url": "https://github.com/agershun/alasql.git"
3231
},
3332
"dependencies": {
34-
"dom-storage":"2.0.1",
3533
"xlsjs":"0.7.15",
36-
"xlsx":"0.8.0"
34+
"js-xlsx":"0.8.0"
3735
},
3836
"devDependencies": {
3937
"gulp":"3.8.11",

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# Changelog
22

3-
### 0.1.1 "Milano" (03.05.2015 - ...05.2015)
3+
### 0.1.2 "Firenze" (06.05.2015 - 07.05.2015)
4+
* Simple compilation of SEARCH operator
5+
* SUM(),COUNT(),MIN(),MAX(),FIRST(),LAST() search aggregators
6+
* # operator, CREATE VERTEX #
7+
* SEARCH # - start with object
8+
* SERCH smth # - test for object
9+
* SEARCH VALUE - leave only one first object in the result
10+
* Bug in browser version (no global object)
11+
* Changed Bower
12+
* CREATE GRAPH
13+
* Minor changes in SEARCH over XML syntax
14+
* New tests added
15+
16+
### 0.1.1 "Milano" (03.05.2015 - 04.05.2015)
417
* XLSXML() into- function with colors
518
* $$hashKey - remove Angular's key
619
* CREATE VERTEX, CREATE EDGE

README.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AlaSQL.js - JavaScript SQL database library for relational and graph data with support of localStorage, IndexedDB, and Excel
22

3-
Version: 0.1.1 "Milano" Date: May 5, 2015 [Change log](CHANGELOG.md), [Release plan](RELEASES.md)
3+
Version: 0.1.2 "Firenze" Date: May 7, 2015 [Change log](CHANGELOG.md), [Release plan](RELEASES.md)
44

55
AlaSQL - '[à la SQL](http://en.wiktionary.org/wiki/%C3%A0_la)' - is a lightweight JavaScript SQL database designed to work in browser, Node.js, and Apache Cordova. It supports traditional SQL with some NoSQL functionality. Current version of AlaSQL can work in memory and use file, IndexedDB, and localStorage as a persistent storage.
66

@@ -54,28 +54,22 @@ Check AlaSQL vs other JavaScript SQL databases and data processing libraries:
5454
AlaSQL now is multi-paradigm database with support documents and graphs. Below you can find an example
5555
how to create graph:
5656
```js
57-
alasql('SET @olga = (CREATE VERTEX "Olga")');
58-
alasql('SET @helen = (CREATE VERTEX "Helen")');
59-
alasql('SET @pablo = (CREATE VERTEX "Pablo")');
60-
alasql('SET @andrey = (CREATE VERTEX "Andrey")');
61-
alasql('SET @alice = (CREATE VERTEX "Alice")');
62-
alasql('CREATE EDGE FROM @olga TO @pablo');
63-
alasql('CREATE EDGE FROM @helen TO @andrey');
64-
alasql('CREATE EDGE FROM @pablo TO @alice');
65-
alasql('CREATE EDGE FROM @andrey TO @alice');
57+
alasql('CREATE GRAPH #Olga, #Helen, #Pablo, #Andrey, #Alice, \
58+
#Olga >> #Pablo, #Helen >> #Andrey, \
59+
#Pablo >> #Alice, #Andrey >> #Alice');
6660
```
6761
and search over it with SEARCH operator:
6862
```js
6963
// Whom loves Olga?
70-
alasql('SEARCH "Olga" >> name');
64+
alasql('SEARCH #Olga >> name');
7165
// ['Pablo']
7266

7367
// Whom loves Olga's love objects?
74-
alasql('SEARCH "Olga" >> >> name');
68+
alasql('SEARCH #Olga >> >> name');
7569
// ['Alice']
7670

7771
// Who loves lovers of Alice?
78-
alasql('SEARCH IF(>> >> "Alice") name');
72+
alasql('SEARCH ANY(>> >> #Alice) name');
7973
// ['Olga','Helen']
8074

8175
```
@@ -90,9 +84,9 @@ You also make searches over JSON object with SEARCH operator:
9084
var res = alasql('SEARCH /+b FROM ?',[data]);
9185
var res = alasql('SEARCH a* b FROM ?',[data]);
9286
var res = alasql('SEARCH a+ b FROM ?',[data]);
93-
var res = alasql('SEARCH a? b FROM ?',[data]);
87+
var res = alasql('SEARCH a? b WHERE(b>20) FROM ?',[data]);
9488
```
95-
Please see more examples in test300-test304.js. All these features will be documented soon.
89+
Please see more examples in test300-test309.js. All these features will be documented soon.
9690

9791
### Version upgrade from 0.0.51 to 0.1.0
9892

TODO.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,77 @@ This file contanis unstructured ideas for future development of AlaSQL.
44

55
## Ideas
66

7+
8+
9+
10+
11+
12+
search / ORDER BY(name DESC)
13+
14+
if next selector is order, then
15+
16+
(/ ORDER BY (no))+
17+
18+
SEARCH c @c sel(a b) ORDER BY(_) @b @[(@c),(@b)]
19+
20+
SEARCH c sel(/ ORDER BY(age))+ @b {name:@c,age:@b}
21+
22+
23+
search :person @p where(age > 2) > :loves > where(sex="F") @@p;
24+
ok = where;
25+
26+
27+
Read: Neo.js
28+
http://neo4j.com/docs/stable/query-unwind.html
29+
30+
31+
create graph #Andrey, #Bonapart, #Andrey >> #Bonapart, #Olga {age:26};
32+
33+
alasql('create graph from gedf("my.gedf"');
34+
alasql('search edge set(color="black"');
35+
alasql('search #Andrey path(#Bonapart) set(color="red")');
36+
d3.force()
37+
.nodes(alasql('search vertex d3()'))
38+
.links(alasql('search edge d3()'));
39+
40+
41+
alasql('search #Andrey path(#Olga) set(color="red")');
42+
alasql('search #Andrey paths((>>)+ OK(sex="F")) / set(color="red")');
43+
44+
45+
1.Change XML mode from '/' to simple tag
46+
2. Add HTML parser (?)
47+
48+
49+
#SUM(_,/b)
50+
51+
alasql('=1+1'); // = operator
52+
alasql('=#Andrey');
53+
54+
alasql('=#SUM(@1,)');
55+
alasql('=(SEARCH SUM(VERTEX))');
56+
57+
alasql('=(SEARCH SUM(a) FROM _)');
58+
alasql('=(SEARCH _ SUM(a))');
59+
alasql('=#SUM(_,a)');
60+
alasql('=#SUM(VERTEX)');
61+
62+
alasql('=(SEARCH SUM(VERTEX))');
63+
alasql('=(SEARCH SUM(EDGE))');
64+
alasql('=(SEARCH SUM(VERTEX),SUM(EDGE))');
65+
alasql('=(SEARCH ALL(SUM(VERTEX),SUM(EDGE))');
66+
alasql('=(SEARCH ANY(SUM(VERTEX),SUM(EDGE))');
67+
68+
69+
alasql('SELECT #SUM(/a) FROM one')
70+
71+
SEARCH a EX( COUNT(b) + COUNT(c d))
72+
73+
74+
75+
(SEARCH SUM(c d) FROM _)
76+
77+
778
Add ! operator;
879

980

alasql.js

Lines changed: 988 additions & 609 deletions
Large diffs are not rendered by default.

console/alasql.min.js

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/alasql.js

Lines changed: 988 additions & 609 deletions
Large diffs are not rendered by default.

dist/alasql.js.map

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/alasql.min.js

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ gulp.task('js-merge', function () {
482482
'./src/832xlsxml.js',
483483
'./src/84from.js',
484484
'./src/843xml.js',
485+
'./src/844gexf.js',
485486
'./src/85help.js',
486487
'./src/86print.js',
487488
'./src/87source.js',

0 commit comments

Comments
 (0)