Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dbq

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbq - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

2

package.json
{
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc