More documentation updates
This commit is contained in:
parent
b6d9faf008
commit
31b0aedc9e
10
API.md
10
API.md
@ -418,7 +418,7 @@ query.get('table_name', 5); // Get 5 rows from the table
|
|||||||
query.get(); // Get the results of a query generated with other methods
|
query.get(); // Get the results of a query generated with other methods
|
||||||
```
|
```
|
||||||
|
|
||||||
Returns **(void | [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise))** If no callback is passed, a promise is returned
|
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Result](#result)>** Promise containing the result of the query
|
||||||
|
|
||||||
## insert
|
## insert
|
||||||
|
|
||||||
@ -429,7 +429,7 @@ Run the generated insert query
|
|||||||
- `table` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The table to insert into
|
- `table` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The table to insert into
|
||||||
- `data` **\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** Data to insert, if not already added with the 'set' method
|
- `data` **\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** Data to insert, if not already added with the 'set' method
|
||||||
|
|
||||||
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** If no callback is passed, a promise is returned
|
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Result](#result)>** Promise containing the result of the query
|
||||||
|
|
||||||
## insertBatch
|
## insertBatch
|
||||||
|
|
||||||
@ -447,7 +447,7 @@ query.insertBatch('foo',[{id:1,val:'bar'},{id:2,val:'baz'}])
|
|||||||
.then(promiseCallback);
|
.then(promiseCallback);
|
||||||
```
|
```
|
||||||
|
|
||||||
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** If no callback is passed, a promise is returned
|
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Result](#result)>** Promise containing the result of the query
|
||||||
|
|
||||||
## update
|
## update
|
||||||
|
|
||||||
@ -458,7 +458,7 @@ Run the generated update query
|
|||||||
- `table` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The table to insert into
|
- `table` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The table to insert into
|
||||||
- `data` **\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** Data to insert, if not already added with the 'set' method
|
- `data` **\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** Data to insert, if not already added with the 'set' method
|
||||||
|
|
||||||
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** If no callback is passed, a promise is returned
|
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Result](#result)>** Promise containing the result of the query
|
||||||
|
|
||||||
## delete
|
## delete
|
||||||
|
|
||||||
@ -469,7 +469,7 @@ Run the generated delete query
|
|||||||
- `table` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The table to insert into
|
- `table` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The table to insert into
|
||||||
- `where` **\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** Where clause for delete statement
|
- `where` **\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** Where clause for delete statement
|
||||||
|
|
||||||
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** If no callback is passed, a promise is returned
|
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Result](#result)>** Promise containing the result of the query
|
||||||
|
|
||||||
## getCompiledSelect
|
## getCompiledSelect
|
||||||
|
|
||||||
|
@ -2826,7 +2826,7 @@ prefixed with 'OR NOT'</p>
|
|||||||
<p>Get the results of the compiled query</p>
|
<p>Get the results of the compiled query</p>
|
||||||
|
|
||||||
|
|
||||||
<div class='pre p1 fill-light mt0'>get(table: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>], limit: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a>], offset: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a>]): (void | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a>)</div>
|
<div class='pre p1 fill-light mt0'>get(table: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>], limit: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a>], offset: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a>]): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2872,8 +2872,8 @@ prefixed with 'OR NOT'</p>
|
|||||||
|
|
||||||
|
|
||||||
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
||||||
<code>(void | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a>)</code>:
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></code>:
|
||||||
If no callback is passed, a promise is returned
|
Promise containing the result of the query
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2920,7 +2920,7 @@ prefixed with 'OR NOT'</p>
|
|||||||
<p>Run the generated insert query</p>
|
<p>Run the generated insert query</p>
|
||||||
|
|
||||||
|
|
||||||
<div class='pre p1 fill-light mt0'>insert(table: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>, data: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>]): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></div>
|
<div class='pre p1 fill-light mt0'>insert(table: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>, data: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>]): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2958,8 +2958,8 @@ prefixed with 'OR NOT'</p>
|
|||||||
|
|
||||||
|
|
||||||
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
||||||
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></code>:
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></code>:
|
||||||
If no callback is passed, a promise is returned
|
Promise containing the result of the query
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2994,7 +2994,7 @@ prefixed with 'OR NOT'</p>
|
|||||||
<p>Insert multiple sets of rows at a time</p>
|
<p>Insert multiple sets of rows at a time</p>
|
||||||
|
|
||||||
|
|
||||||
<div class='pre p1 fill-light mt0'>insertBatch(table: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>, data: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></div>
|
<div class='pre p1 fill-light mt0'>insertBatch(table: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>, data: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -3032,8 +3032,8 @@ prefixed with 'OR NOT'</p>
|
|||||||
|
|
||||||
|
|
||||||
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
||||||
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></code>:
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></code>:
|
||||||
If no callback is passed, a promise is returned
|
Promise containing the result of the query
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -3075,7 +3075,7 @@ prefixed with 'OR NOT'</p>
|
|||||||
<p>Run the generated update query</p>
|
<p>Run the generated update query</p>
|
||||||
|
|
||||||
|
|
||||||
<div class='pre p1 fill-light mt0'>update(table: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>, data: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>]): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></div>
|
<div class='pre p1 fill-light mt0'>update(table: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>, data: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>]): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -3113,8 +3113,8 @@ prefixed with 'OR NOT'</p>
|
|||||||
|
|
||||||
|
|
||||||
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
||||||
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></code>:
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></code>:
|
||||||
If no callback is passed, a promise is returned
|
Promise containing the result of the query
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -3149,7 +3149,7 @@ prefixed with 'OR NOT'</p>
|
|||||||
<p>Run the generated delete query</p>
|
<p>Run the generated delete query</p>
|
||||||
|
|
||||||
|
|
||||||
<div class='pre p1 fill-light mt0'>delete(table: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>, where: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>]): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></div>
|
<div class='pre p1 fill-light mt0'>delete(table: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a>, where: [<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>]): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -3187,8 +3187,8 @@ prefixed with 'OR NOT'</p>
|
|||||||
|
|
||||||
|
|
||||||
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
<div class='py1 quiet mt1 prose-big'>Returns</div>
|
||||||
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></code>:
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="#result">Result</a>></code>:
|
||||||
If no callback is passed, a promise is returned
|
Promise containing the result of the query
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
0
lib/adapters/MSSQLServer/index.js
Normal file
0
lib/adapters/MSSQLServer/index.js
Normal file
Loading…
Reference in New Issue
Block a user