-
Notifications
You must be signed in to change notification settings - Fork 659
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
177 changed files
with
31,019 additions
and
26,217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|
@@ -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. | ||
|
@@ -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 | ||
|
@@ -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), | ||
|
@@ -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]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
||
|
@@ -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) | ||
|
||
|
@@ -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]` | ||
|
@@ -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: | ||
|
||
|
Oops, something went wrong.