Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "dbq", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "terse node-mysql query wrapper to ease parallel + series execution", | ||
@@ -5,0 +5,0 @@ "main": "dbq.js", |
@@ -27,3 +27,3 @@ # dbq 🍢 | ||
### [Example](#Example) | ||
### Example | ||
Four queries, [executed in parallel](https://github.com/mysqljs/mysql#executing-queries-in-parallel), four results: | ||
@@ -38,3 +38,3 @@ ```javascript | ||
### [Callbacks or Promises](#callbacks-or-promises) | ||
### Callbacks or Promises | ||
@@ -60,3 +60,3 @@ Pass a function as the last input, and that will receive query results as inputs in the order supplied: | ||
``` | ||
### [Series or Parallel](#series-or-parallel) | ||
### Series or Parallel | ||
It can execute queries in series or parallel (assuming you have [connection pooling](https://github.com/mysqljs/mysql#pooling-connections) on). | ||
@@ -87,3 +87,3 @@ ```javascript | ||
### [Return Shortcuts](#return-shortcuts) | ||
### Return Shortcuts | ||
Queries are often performed to retrieve single value results, not arrays of objects. | ||
@@ -95,6 +95,6 @@ | ||
### [Schemize](#schemize) | ||
### Schemize | ||
If your credentials have `information_schema` access, `db.schemize()` will query it and put a representation of the database's tables and their columns at `db.table` for easy referencing elsewhere in code. | ||
### [Setup & Options](#setup-options) | ||
### Setup & Options | ||
Any key:value passed to the `db` options object is `Object.assign`ed to `db`, so will overwrite defaults. Useful to create your own logging. For example, I like to add an `ellipsize` option to it & the logger so I can see partial or full queries if debugging. | ||
@@ -117,3 +117,3 @@ ```javascript | ||
### [Common Methods](#common-methods) | ||
### Common Methods | ||
If you want, you can pass an object and its table name into ```db.attachCommonMethods(model,name,done)``` to attach an opinionated: | ||
@@ -139,3 +139,3 @@ ```javascript | ||
### [Caveats](#Caveats) | ||
### Caveats | ||
@@ -142,0 +142,0 @@ * **variables and temp tables across multiple connections** - since parallel execution requires a connection pool, this means queries will occur across different connections, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18098