Skip to content

Commit

Permalink
Merge branch 'release/0.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasrw committed Oct 13, 2016
2 parents 52036c0 + b881f3a commit 77e2178
Show file tree
Hide file tree
Showing 177 changed files with 31,019 additions and 26,217 deletions.
34 changes: 25 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
# Changelog
* Check https://trello.com/b/qxz65pVi/alasql-roadmap for roadmap

_0.3.2 "..." (18.08.2016)_

* ...
_0.3.4 "....." (xx.11.2016)_
* ...


### 0.3.3 "Makemo" (13.10.2016)
* Add: support for VALUE inside checks
* Add: Conflate null and undefined
* Add: Load CSV data from a string
* Add: Warn when server side uses browser build of lib
* Update: typescript definition for native import

### 0.3.2 "Maumu" (05.09.2016)
* Added: Postgres arrays like array[] and text[]
* Added: Allow non-reserved keywords as identifiers
* Fix: Empty tsv/csv files will no longer raise an error
* Fix: alasql.d.ts format
* Fix: Better way to find out if indexedDB is present
* Fix: `null = null` is (now) null, baby.
* Update: Column names first for RECORDSETS


### 0.3.1 "Taravao" (01.08.2016)
* Allow unknown functions to be defined on alasql.fn afterwards
* Easy access to AUTOINCREMENT values
* MEDIAN will ignore null values
* STDEV will ignore null values
* Allow unknown functions to be defined on alasql.fn afterwards
* Easy access to AUTOINCREMENT values
* MEDIAN will ignore null values
* STDEV will ignore null values


## Version 0.3.0 "Papeete" (25.07.2016)_
## Version 0.3.0 "Papeete" (25.07.2016)
* Breaking change: CSVs with header will now default have BOM added (for better utf8 support)
* Added: Constraint names will now be exported in error message
* Added: Web worker now supports .promise notation
Expand All @@ -32,7 +49,6 @@ _0.3.2 "..." (18.08.2016)_


### 0.2.6 "Frikes" (22.04.2016)

* Added: Progress callback
* Change: CLI defaults to pretty print (with option for compressed output as original)
* Fix: Declaring all variables
Expand Down
23 changes: 1 addition & 22 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

Thank you very much or the your intentions! AlaSQL project still has a lot of thing to be improved, and your help is very appreciated!


We have many things to improve:
* [issues and bugs](https://github.com/agershun/alasql/issues)
* [wiki documentation](https://github.com/agershun/alasql/wiki)
* code refactoring and documenting
* import-export functions
* [alasql.org web site](https://github.com/agershun/alasql-org)

For you to edit the source please do the following:

- Fork the repo here on Github
Expand All @@ -26,21 +18,8 @@ For you to edit the source please do the following:
_Please note that `npm test` will compile from `src/` before running tests_


If you would would like to change the alasql.org website please make a PR to https://github.com/agershun/alasql-org

## For documentation


### Suggest Content
- Have you had questions that you wished you had answers to? Are there resources or references that you wish were made available to you in a central location? **Submit them!** as an issue

### Author Content
- See a question that you can answer or are an expert on? **Answer it!**
- See an answer that you can improve, build upon, or provide an alternative perspective to? **Edit it!**
- See ways to organize content better, improve the writing style for clarity or simply make the reading experience easier? **Improve it!**

###Review Content
- Have feedback on the accuracy, clarity or relevance of existing content? **Flag it**.



Thank you!
32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
_AlaSQL is an open source project and we appreciate any and all contributions we can get. Please help out._

_Got a question? Ask on [Stack Overflow](http://stackoverflow.com/questions/ask?tags=AlaSQL) and tag with "alasql"._


[![Build status](https://api.travis-ci.org/agershun/alasql.svg)](https://travis-ci.org/agershun/alasql?123)
[![NPM downloads](http://img.shields.io/npm/dm/alasql.svg?style=flat&label=npm%20downloads)](https://npmjs.org/package/alasql?)
[![ghit.me](https://ghit.me/badge.svg?repo=agershun/alasql)](https://ghit.me/repo/agershun/alasql)
![Release](https://img.shields.io/github/release/agershun/alasql.svg?label=Last%20release&a)
![Stars](https://img.shields.io/github/stars/agershun/alasql.svg?label=Github%20%E2%98%85&a)
[![Coverage]( https://img.shields.io/codecov/c/github/agershun/alasql/develop.svg)](https://rawgit.com/agershun/alasql/develop/test/coverage/lcov-report/dist/alasql.fs.js.html)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/328/badge)](https://bestpractices.coreinfrastructure.org/projects/328)
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/agershun/alasql.svg)](http://isitmaintained.com/project/agershun/alasql "Average time to resolve an issue")

_AlaSQL is an open source project and we appreciate any and all contributions we can get. Please help out._
<div align="center"><a href="http://alasql.org"><img src="https://cloud.githubusercontent.com/assets/1063454/19309516/94f8007e-9085-11e6-810f-62fd60b42185.png" alt="AlaSQL logo" styl="max-width:80%"/></a>
</div>


_Got a question? Ask on [Stack Overflow](http://stackoverflow.com/questions/ask?tags=AlaSQL) and tag with "alasql"._

# AlaSQL

<a href="http://alasql.org"><img src="https://cloud.githubusercontent.com/assets/1063454/14003945/d6e56888-f156-11e5-95b9-3035a2538ae8.png" align="left" alt="AlaSQL logo" /></a>
_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ɛskju:ɛl]_ - AlaSQL is an open source SQL database for Javascript with a strong focus on query speed and datasource flexibility for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova.

_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ɛskju:ɛl]_ - AlaSQL is a free and open source SQL database for Javascript with a strong focus on query speed and datasource flexibility for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova.

The library is designed for:

* Fast SQL based in-memory data processing for BI and ERP applications on fat clients
* Fast SQL data processing in-memory for BI and ERP applications on fat clients
* Easy ETL and option for persistency by data import / manipulation / export for several formats
* All major browsers, Node.js, and mobile applications
* All major browsers, Node.js, and mobile applications

We focus on [speed](https://github.com/agershun/alasql/wiki/Speed) by taking advantage of the dynamic nature of javascript when building up queries. Real world solutions demands flexibility regarding where data comes from and where it is to be stored. We focus on flexibility by making sure you can [import/export](https://github.com/agershun/alasql/wiki/Import-export) and query directly on data stored in Excel (both `xls` and `.xlsx`), CSV, JSON, TAB, IndexedDB, LocalStorage, and SQLite files.

Expand Down Expand Up @@ -499,7 +506,7 @@ To run enter the command:
```
alaserver [port]
```
then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2"
then type in browser something like "<a href="http://127.0.0.1:1337/?SELECT VALUE 2*2">http://127.0.0.1:1337/?SELECT VALUE 2*2</a>"
Warning: Alaserver is not multi-thread, not concurrent, and not secured.
Expand Down Expand Up @@ -572,15 +579,15 @@ Please be aware that AlaSQL ~~may~~ have [bugs](https://github.com/agershun/alas
0. At the moment Alasql does not work with jszip 3.0.0 - please use version 2.x
0. At the moment Alasql is incompatible with xlsx.js 0.8 - please use version [7.x](https://cdnjs.com/libraries/xlsx/0.7.12)
0. At the moment Alasql is incompatible with xlsx.js 0.8 on the website - please use version [7.x](https://cdnjs.com/libraries/xlsx/0.7.12) by using `<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.7.12/xlsx.core.min.js"></script>` on your website
Probably, there are many of others. Please, help us to fix them by [submitting it as an issue](https://github.com/agershun/alasql/issues). Thank you!
## Bleeding edge
If you want to try the last development version of the library please download [this file](https://github.com/agershun/alasql/blob/develop/dist/alasql.js) or visit the [testbench](https://rawgit.com/agershun/alasql/develop/utils/testbench.html) to play around in the browser console.
If you want to try the last development version of the library please download [this file](https://github.com/agershun/alasql/blob/develop/dist/alasql.fs.js) or visit the [testbench](https://rawgit.com/agershun/alasql/develop/utils/testbench.html) to play around in the browser console.
## Tests
Expand Down Expand Up @@ -637,6 +644,10 @@ MIT - see [MIT licence information](LICENSE)
* [Mathias Rangel Wulff](https://twitter.com/rangelwulff)
* [Aubert Grégoire](https://github.com/gregaubert)
[![Throughput Graph](https://graphs.waffle.io/agershun/alasql/throughput.svg)](https://waffle.io/agershun/alasql/metrics/throughput)
## Credits
Many thanks to Zach Carter for [Jison](http://zaach.github.io/jison/) parser generator, to the author of FileSaver.js, Andrew Kent for his [SQL Parser](https://github.com/forward/sql-parser),
Expand All @@ -651,8 +662,7 @@ and other people for useful tools, which make our work much easier.
* [Other similar projects](http://github.com/agershun/alasql/wiki/Similar-Projects.md) - list of databases on JavaScript
----
----
<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>
© 2014-2016, Andrey Gershun ([email protected]) & M. Rangel Wulff ([email protected])
2 changes: 1 addition & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ e) extend transactions support
f) add simple triggers or INSERT OR REPLACE operator
g) improve database backend functionality (IndexedDB, localStorage, fileStorage) - especially for mobile applications (Cordova, Meteor).

The target of this phase is to pass SQLLOGIC test. Current 300 unit tests are not enough for such big project.
The target of this phase is to pass SQLLOGIC test.


### AlaSQL 0.4
Expand Down
49 changes: 29 additions & 20 deletions TESTLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ The Sqllogictest was developed by [the SQLite team](https://www.sqlite.org/sqllo
to verify that SQL database engine computes correct results by comparing the results to identical queries from other SQL database engines. The full test consists of roughly 6 million SQL statements.

### Node
* Total tested: 1,007,187
* Failed tests: 114,412
* `[email protected]`
* Total tested: 5,941,494
* Failed tests: 638,370
* Skipped tests: 53,316
* Assumed still OK: 676,454
* Final score: 90 % was OK
* Final score: 88 % was OK

See full result [here](https://github.com/agershun/alasql/tree/develop/test/!testlog/SQLlogic.md)

Expand All @@ -22,30 +22,34 @@ It has not yet been possible to run the SQLlogic tests on the Chrakra engine.


## Regression test
The [regression tests for AlaSQL](https://github.com/agershun/alasql/tree/develop/test/) consists of more than 1000 test cases (hopefully) covering all of the functionality in the library. By executing `npm run test:only` the regression test will run via node. By executing `npm run test:browser` it will run in a browser.
The [regression tests for AlaSQL](https://github.com/agershun/alasql/tree/develop/test/) consists of more than 1000 test casescovering [![Coverage]( https://img.shields.io/codecov/c/github/agershun/alasql/develop.svg)](https://rawgit.com/agershun/alasql/develop/test/coverage/lcov-report/dist/alasql.fs.js.html) of the functionality in the library. The regression test is ran everytime the library is compiled from `src/` to `dist/` and must always be 100% OK on Node before releaseing a new version.

By executing `npm test` the regression test will run via Node. By executing `npm run test:browser` it will run in a browser.

### Chrome 48
- `[email protected]`
- Failures: 61
- Passes 1063



### Chrome 52
- `[email protected]`
- Failures: 47
- Passes 1080

See full result [here](https://github.com/agershun/alasql/tree/develop/test/!testlog/Chrome.md)

_It needs more investigations, but as Chrome uses the same V8 engine as Node the errors are likely caused by how some of the tests loads or stores test data. The amount of Chrome errors will be therefor (probably) also be represented in other browsers._

### Safari 9
- `alasql@0.2.3-develop-1206`
- Failures: 79
- Passes 1045
- `alasql@0.3.2-develop-1413`
- Failures: 63
- Passes 1064

See full result [here](https://github.com/agershun/alasql/tree/develop/test/!testlog/Safari.md)


### Firefox 42
- `alasql@0.2.3-develop-1206`
- Failures: 80
- Passes 1044
### Firefox 47
- `alasql@0.3.2-develop-1413`
- Failures: 58
- Passes 1069

See full result [here](https://github.com/agershun/alasql/tree/develop/test/!testlog/Firefox.md)

Expand All @@ -54,6 +58,11 @@ See full result [here](https://github.com/agershun/alasql/tree/develop/test/!tes
- Failures: 81
- Passes 1034

### Opera 38
- `[email protected]`
- Failures: 46
- Passes 1081


### Chakra v6.0.0-pre5
- `[email protected]`
Expand All @@ -65,11 +74,11 @@ See full result [here](https://github.com/agershun/alasql/tree/develop/test/!tes


### Node
- `alasql@0.2.3-detached.from.b496c74-69`
- 1386 passing (9s)
- 66 pending
- `alasql@0.3.2-develop-1413`
- 1385 passing (2m)
- 83 pending

The regression test is ran everytime the library is compiled from `src/` to `dist/` and must always be 100% OK before releaseing a new version.


If 100% of the regression test is OK for [the lats commit](https://travis-ci.org/agershun/alasql/builds) this will be green:

Expand Down
Loading

0 comments on commit 77e2178

Please sign in to comment.