Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .travis.yml
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
22 changes: 22 additions & 0 deletions README.md
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)
22 changes: 19 additions & 3 deletions bower.json
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"
}
}
18 changes: 11 additions & 7 deletions package.json
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"
}
}
9 changes: 0 additions & 9 deletions src/Main.purs

This file was deleted.

9 changes: 9 additions & 0 deletions src/SqlSquare.purs
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
Loading