Popularity
2.8
Declining
Activity
0.0
Stable
1
4
0

Monthly Downloads: 18
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Web    

serviette alternatives and similar packages

Based on the "Web" category.
Alternatively, view serviette alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of serviette or a related project?

Add another 'Web' Package

README

SERVIETTE - JSON to SQL Build Status Hackage

Library for generating SQL queries from JSON. Send the json in the expected format and receive raw sql string.

Why ?

  • Why not ?

Expected JSON format

{
    "format":1,
    "action":"SELECT",
    "selectName": "users",
    "joinTables":[
          {"tablename":"addresses","field":"userid","operator":"=","withTable":"users", "withField":"id"},
          {"tablename":"posts","field":"userid","operator":"=","withTable":"users", "withField":"id"}
        ],
    "whereCondition":[
          {"whereTableName":"users","whereField":"id", "whereOperator":">", "whereFieldValue": 1}
      ]
}

If format is set to 1 you will get json response:

{"response":"SELECT users join addresses on userid = users.id  join posts on userid = users.id   where users.id > 1","warnings":"","errors":""}

You can find this lib on hackage Serviette backend is here