criterion
Version:
criterion allows you to work with (build, combine, reuse, ...) SQL-where-conditions ('x = 5 AND y IS NOT NULL'...) as data (goodbye string-concatenation) and compile them to SQL: it has a succinct mongodb-like query-language, a simple and elegant function
58 lines (57 loc) • 1.76 kB
JSON
{
"name": "criterion",
"version": "0.4.0-rc.1",
"description": "criterion allows you to work with (build, combine, reuse, ...) SQL-where-conditions ('x = 5 AND y IS NOT NULL'...) as data (goodbye string-concatenation) and compile them to SQL: it has a succinct mongodb-like query-language, a simple and elegant functional API, is reasily extended just by implementing 2 functions and gets out of your way: you can always drop down to raw-sql",
"keywords": [
"sql",
"condition",
"where",
"clause",
"query",
"mongodb",
"parser",
"compiler",
"builder",
"dsl",
"language",
"immutable",
"postgres",
"orm"
],
"homepage": "http://github.com/snd/criterion",
"author": {
"name": "Maximilian Krüger",
"email": "kruemaxi@gmail.com",
"url": "http://github.com/snd"
},
"bugs": {
"url": "http://github.com/snd/criterion/issues",
"email": "kruemaxi@gmail.com"
},
"repository": {
"type": "git",
"url": "git://github.com/snd/criterion.git"
},
"licenses": {
"type": "MIT",
"url": "git://github.com/snd/criterion/LICENSE"
},
"engines": {
"node": ">=0.8.0"
},
"dependencies": {
},
"devDependencies": {
"coffee-script": "1.8.0",
"nodeunit": "0.9.0"
},
"scripts": {
"compile": "node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee",
"clean": "rm -f src/*.js",
"prepublish": "node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee",
"pretest": "rm -f src/*.js",
"test": "node_modules/nodeunit/bin/nodeunit test/*.coffee || :",
"posttest": "node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee"
},
"main": "src/criterion"
}