From 508b1b0d881c772bc871a0223ac9f2118e30e9f3 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Fri, 12 Feb 2016 12:50:59 -0500 Subject: [PATCH] Update docs again --- API.md | 19 ------------------- docs/index.html | 39 ++------------------------------------- lib/QueryBuilder.js | 35 +++++++++++++++++++++++------------ lib/drivers/Sqlite.js | 6 +++--- lib/helpers.js | 2 +- lib/promisify.js | 3 ++- 6 files changed, 31 insertions(+), 73 deletions(-) diff --git a/API.md b/API.md index 7885a1c..157504b 100644 --- a/API.md +++ b/API.md @@ -369,7 +369,6 @@ Returns **QueryBuilder** The Query Builder object, for chaining ## query Manually make an sql query -Returns a promise if no callback is provided **Parameters** @@ -490,21 +489,3 @@ Set a 'where not in' clause - `values` **Array** the array of items to search in Returns **QueryBuilder** The Query Builder object, for chaining - -# promisify - -Function to convert a callback function into a promise - -**Parameters** - -- `fn` **Function** the callback function to convert - -**Examples** - -```javascript -promisify(fs.readFile)('hello.txt', 'utf8') -.then(console.log) -.catch(console.error) -``` - -Returns **Promise** the new promise diff --git a/docs/index.html b/docs/index.html index 7621d25..c781fdc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -237,11 +237,6 @@ class='regular block'> #whereNotIn - - promisify - @@ -1616,8 +1611,7 @@ prefixed with 'OR NOT'

#query(sql, [params], [callback])
-

Manually make an sql query -Returns a promise if no callback is provided

+

Manually make an sql query

@@ -1626,8 +1620,7 @@ Returns a promise if no callback is provided

query(sql, [params], [callback])

-

Manually make an sql query - Returns a promise if no callback is provided

+

Manually make an sql query

Parameters