Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 2d46fb9

Browse files
authored
Initial stuff (#1)
* 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
1 parent fdeceab commit 2d46fb9

23 files changed

+1861
-401
lines changed

.travis.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
language: node_js
22
dist: trusty
33
sudo: required
4-
node_js:
5-
- 6
4+
node_js: stable
65
install:
7-
- npm install pulp bower -g
8-
- npm install && bower install
6+
- npm install -g bower
7+
- npm install
8+
- bower install
99
script:
10-
- npm run test
10+
- npm run -s build
11+
- npm run -s test
12+
after_success:
13+
- >-
14+
test $TRAVIS_TAG &&
15+
echo $GITHUB_TOKEN | pulp login &&
16+
echo y | pulp publish --no-push

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# purescript-sqlsquare
2+
3+
[![Latest release](http://img.shields.io/github/release/slamdata/purescript-sqlsquare.svg)](https://github.com/slamdata/purescript-sqlsquare/releases)
4+
[![Build status](https://travis-ci.org/slamdata/purescript-sqlsquare.svg?branch=master)](https://travis-ci.org/slamdata/purescript-sqlsquare)
5+
6+
AST and printer for SQL² -- query language used by [quasar](https://github.com/quasar-analytics/quasar).
7+
8+
## Instalation
9+
10+
```
11+
bower install purescript-sqlsquare
12+
```
13+
14+
## Documentation
15+
16+
There are two examples (extracted from [slamdata](https://github.com/slamdata/slamdata))
17+
+ Extraction sql fields from array of jsons: [here](test/src/Argonaut.purs)
18+
+ Interpretation query language of [purescript-search](https://github.com/slamdata/purescript-search):
19+
[here](test/src/Search.purs)
20+
21+
22+
Module documentation is published on Pursuit: [http://pursuit.purescript.org/packages/purescript-sqlsquare](http://pursuit.purescript.org/packages/purescript-sqlsquare)

bower.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
{
22
"name": "purescript-sqlsquare",
3+
"homepage": "https://github.com/slamdata/purescript-sqlsquare",
4+
"license": "Apache-2.0",
5+
"repository": {
6+
"type": "git",
7+
"url": "git://github.com/slamdata/purescript-sqlsquare.git"
8+
},
39
"ignore": [
410
"**/.*",
511
"node_modules",
612
"bower_components",
7-
"output"
13+
"output",
14+
"bower.json",
15+
"package.json"
816
],
917
"dependencies": {
1018
"purescript-prelude": "^2.4.0",
11-
"purescript-matryoshka": "^0.1.1",
19+
"purescript-matryoshka": "^0.2.0",
1220
"purescript-pathy": "^3.0.2",
13-
"purescript-debug": "^2.0.0"
21+
"purescript-profunctor": "^2.0.0",
22+
"purescript-profunctor-lenses": "^2.6.0",
23+
"purescript-ejson": "^6.0.0"
24+
},
25+
"devDependencies": {
26+
"purescript-argonaut": "^2.0.0",
27+
"purescript-search": "^2.0.0",
28+
"purescript-debug": "^2.0.0",
29+
"purescript-test-unit": "^10.1.0"
1430
}
1531
}

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
2-
"name": "purescript-sqlsquare",
3-
"license": "Apache-2.0",
4-
"dependencies": {
5-
"pulp": "^10.0.1",
6-
"purescript": "^0.10.7",
7-
"purescript-psa": "^0.4.0"
8-
}
2+
"name": "purescript-sqlsquare",
3+
"license": "Apache-2.0",
4+
"scripts": {
5+
"build": "pulp build -- --censor-lib --strict --stash",
6+
"test": "pulp test -- --censor-lib --strict --stash"
7+
},
8+
"dependencies": {
9+
"pulp": "^10.0.1",
10+
"purescript": "^0.10.7",
11+
"purescript-psa": "^0.4.0"
12+
}
913
}

src/Main.purs

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/SqlSquare.purs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module SqlSquare
2+
( module AST
3+
, module Lenses
4+
, module Constructors
5+
) where
6+
7+
import SqlSquare.AST as AST
8+
import SqlSquare.Lenses as Lenses
9+
import SqlSquare.Constructors as Constructors

0 commit comments

Comments
 (0)