This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* constructors * wip * lenses * more lenses * ... * wip examples * search example * joggling packages wip * tests... * only tests for search interpreter is left * done * readme * Literal, need manually implement Ord1 and Eq1 * using EJsonF * updated ejson dep * capitalized * capitalize tests, polymorphic l * updated to the latest purescript-ejson, added date|time constructors|lenses * lenses
- Loading branch information
1 parent
fdeceab
commit 2d46fb9
Showing
23 changed files
with
1,861 additions
and
401 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
language: node_js | ||
dist: trusty | ||
sudo: required | ||
node_js: | ||
- 6 | ||
node_js: stable | ||
install: | ||
- npm install pulp bower -g | ||
- npm install && bower install | ||
- npm install -g bower | ||
- npm install | ||
- bower install | ||
script: | ||
- npm run test | ||
- npm run -s build | ||
- npm run -s test | ||
after_success: | ||
- >- | ||
test $TRAVIS_TAG && | ||
echo $GITHUB_TOKEN | pulp login && | ||
echo y | pulp publish --no-push |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# purescript-sqlsquare | ||
|
||
[![Latest release](http://img.shields.io/github/release/slamdata/purescript-sqlsquare.svg)](https://github.com/slamdata/purescript-sqlsquare/releases) | ||
[![Build status](https://travis-ci.org/slamdata/purescript-sqlsquare.svg?branch=master)](https://travis-ci.org/slamdata/purescript-sqlsquare) | ||
|
||
AST and printer for SQL² -- query language used by [quasar](https://github.com/quasar-analytics/quasar). | ||
|
||
## Instalation | ||
|
||
``` | ||
bower install purescript-sqlsquare | ||
``` | ||
|
||
## Documentation | ||
|
||
There are two examples (extracted from [slamdata](https://github.com/slamdata/slamdata)) | ||
+ Extraction sql fields from array of jsons: [here](test/src/Argonaut.purs) | ||
+ Interpretation query language of [purescript-search](https://github.com/slamdata/purescript-search): | ||
[here](test/src/Search.purs) | ||
|
||
|
||
Module documentation is published on Pursuit: [http://pursuit.purescript.org/packages/purescript-sqlsquare](http://pursuit.purescript.org/packages/purescript-sqlsquare) |
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,15 +1,31 @@ | ||
{ | ||
"name": "purescript-sqlsquare", | ||
"homepage": "https://github.com/slamdata/purescript-sqlsquare", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/slamdata/purescript-sqlsquare.git" | ||
}, | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"output" | ||
"output", | ||
"bower.json", | ||
"package.json" | ||
], | ||
"dependencies": { | ||
"purescript-prelude": "^2.4.0", | ||
"purescript-matryoshka": "^0.1.1", | ||
"purescript-matryoshka": "^0.2.0", | ||
"purescript-pathy": "^3.0.2", | ||
"purescript-debug": "^2.0.0" | ||
"purescript-profunctor": "^2.0.0", | ||
"purescript-profunctor-lenses": "^2.6.0", | ||
"purescript-ejson": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"purescript-argonaut": "^2.0.0", | ||
"purescript-search": "^2.0.0", | ||
"purescript-debug": "^2.0.0", | ||
"purescript-test-unit": "^10.1.0" | ||
} | ||
} |
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,9 +1,13 @@ | ||
{ | ||
"name": "purescript-sqlsquare", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"pulp": "^10.0.1", | ||
"purescript": "^0.10.7", | ||
"purescript-psa": "^0.4.0" | ||
} | ||
"name": "purescript-sqlsquare", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"build": "pulp build -- --censor-lib --strict --stash", | ||
"test": "pulp test -- --censor-lib --strict --stash" | ||
}, | ||
"dependencies": { | ||
"pulp": "^10.0.1", | ||
"purescript": "^0.10.7", | ||
"purescript-psa": "^0.4.0" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module SqlSquare | ||
( module AST | ||
, module Lenses | ||
, module Constructors | ||
) where | ||
|
||
import SqlSquare.AST as AST | ||
import SqlSquare.Lenses as Lenses | ||
import SqlSquare.Constructors as Constructors |
Oops, something went wrong.