serviette 0.1.0.3 → 0.1.0.4
raw patch · 2 files changed
+12/−6 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +11/−5
- serviette.cabal +1/−1
README.md view
@@ -1,4 +1,4 @@-# SERVIETTE - SQL JSON API +# SERVIETTE - JSON to SQL Library for generating SQL queries from JSON. Send the json in the expected format and receive raw sql string. ### Why ?@@ -7,7 +7,7 @@ ### Expected JSON format ```` {- "format":1,+ "format":1, "action":"SELECT", "selectName": "users", "joinTables":[@@ -20,8 +20,14 @@ } ```` -If `format` is set to 1 you will get raw sql string back, something like this:-`````+If `format` is set to 1 you will get raw sql string back: -`````+````+SELECT users join addresses on userid = users.id join posts on userid = users.id where users.id > 1+````++### Work in progress+This works for `SELECT` statements, others need to be implemented as well as error and warning messages if the json does not contain what it should. +You can find this lib on [hackage](https://hackage.haskell.org/package/serviette)+Example usage with Yesod is [here](https://github.com/v0d1ch/serviette-yesod-example)
serviette.cabal view
@@ -1,5 +1,5 @@ name: serviette-version: 0.1.0.3+version: 0.1.0.4 synopsis: JSON to raw Sql string description: Use json to query the database and receive results homepage: https://github.com/v0d1ch/serviette#readme