Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "dbq", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "terse node-mysql query wrapper that supports parallel & series execution", | ||
@@ -5,0 +5,0 @@ "main": "dbq.js", |
@@ -17,3 +17,3 @@ # dbq | ||
db("select * from user where name=?",['morty'] | ||
"select name,volume from dims where dim=?",['c-137'] | ||
,"select name,volume from dims where dim=?",['c-137'] | ||
,(morty,dim)=>{/*fiddle*/}) | ||
@@ -24,10 +24,10 @@ ``` | ||
```javascript | ||
db( "select * from jerrys where dim=?",["c-137"] | ||
,"select * from ricks where dim=?",["J19ζ7"] | ||
) .then(([jerry,doofusRick])=>{//a promise resolves to 1 value, but es6 destructuring can separate them | ||
//fiddle | ||
}) | ||
//if it's thenable, you can catch, too | ||
.catch(errorHandler) | ||
//but it's already going to log out when errors happen anyway | ||
db("select * from jerrys where dim=?",["c-137"] | ||
,"select * from ricks where dim=?",["J19ζ7"] | ||
).then(([jerry,doofusRick])=>{//a promise resolves to 1 value, but es6 destructuring can separate them | ||
//fiddle | ||
}) | ||
//if it's thenable, you can catch, too | ||
.catch(errorHandler) | ||
//but it's already going to log out when errors happen anyway | ||
``` | ||
@@ -34,0 +34,0 @@ ### [Series or Parallel](#series-or-parallel) |
8239