Comparing version 0.1.0 to 0.2.0
@@ -5,3 +5,3 @@ { | ||
"author": "Maximilian Krüger <kruemaxi@googlemail.com> (http://github.com/snd)", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"repository": { | ||
@@ -11,5 +11,8 @@ "type": "git", | ||
}, | ||
"dependencies": { | ||
"coffee-script": "1.4.0" | ||
}, | ||
"devDependencies": { | ||
"nodeunit": "*" | ||
"nodeunit": "0.7.4" | ||
} | ||
} |
# criterion | ||
sql-where-criteria description language | ||
[![Build Status](https://travis-ci.org/snd/criterion.png)](https://travis-ci.org/snd/criterion) | ||
@@ -33,3 +34,3 @@ inspired by the [mongo query language](http://www.mongodb.org/display/DOCS/Advanced+Queries) | ||
c.sql() # 'x = ?' | ||
c.sql() # '(x = ?)' | ||
c.params() # [7] | ||
@@ -44,3 +45,3 @@ ``` | ||
fst.and(snd).sql() # 'x = ? AND y = ? AND z = ?' | ||
fst.and(snd).sql() # '(x = ?) AND (y = ?) AND (z = ?)' | ||
fst.and(snd).params() # [7, 'foo', true] | ||
@@ -57,6 +58,6 @@ | ||
c.not().sql() # 'NOT (x = ? AND y = ?)' | ||
c.not().sql() # 'NOT ((x = ?) AND (y = ?))' | ||
c.not().params() # [7, 'foo', true] | ||
c.not().not().sql() # 'x = ? AND y = ?' | ||
c.not().not().sql() # '(x = ?) AND (y = ?)' | ||
c.not().not().params() # [7, 'foo', true] | ||
@@ -67,3 +68,3 @@ ``` | ||
### example arguments to `criterion` | ||
### possible function arguments to `criterion` | ||
@@ -70,0 +71,0 @@ ##### find where `x = 7` and `y = 'foo'` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
12769
5
162
1
+ Addedcoffee-script@1.4.0
+ Addedcoffee-script@1.4.0(transitive)