Skip to content

Commit

Permalink
Generated documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
QSmally committed Sep 29, 2020
1 parent 2abb58e commit fae70c4
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 4 deletions.
27 changes: 26 additions & 1 deletion Documentation/Gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,29 @@ This class is rather used than a Connection when initialised in a multithreaded
> | Method | String | Method or property of the Connection to select. |
> | Parameters | ...Any | Additional parameters to give to the function. |
>
> Returns **{Promise<Any>}** Result of the thread.
> Returns **{Promise<Any>}** Result from the thread.
## [.Set(KeyOrPath, Value)](https://github.com/QSmally/QDB/blob/v4/lib/Executors/Pool/ThreadProvider/Gateway.js#L66) [**Async**]
> Manages the elements of the database. Asynchronously performs this query.
> | Key | Type | Description |
> | --- | --- | --- |
> | KeyOrPath | Pathlike | Specifies at what row to insert or replace the element at. |
> | Value | Object, Array, Any | Data to set at the row address, at the location of the key or path. |
>
> Returns **{Promise<Any>}** Result from the thread.
## [.Fetch(KeyOrPath)](https://github.com/QSmally/QDB/blob/v4/lib/Executors/Pool/ThreadProvider/Gateway.js#L78) [**Async**]
> Manages the retrieval of the database. Asynchronously performs this query.
> | Key | Type | Description |
> | --- | --- | --- |
> | KeyOrPath | Pathlike | Specifies which row to fetch from the database. |
>
> Returns **{Promise<Any>}** Result from the thread.
## [.Erase(Keys)](https://github.com/QSmally/QDB/blob/v4/lib/Executors/Pool/ThreadProvider/Gateway.js#L89) [**Async**]
> Manages the deletion of the database. Asynchronously performs this query.
> | Key | Type | Description |
> | --- | --- | --- |
> | Keys | ...Pathlike | A key or multiple keys to remove from the database. |
>
> Returns **{Promise<Any>}** Result from the thread.
43 changes: 40 additions & 3 deletions Documentation/Output.json
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@
"Variable",
"Private"
],
"Line": 67,
"Line": 64,
"Description": "The manager that handles backups of this Pool.",
"Type": "{Function?}"
},
Expand All @@ -592,7 +592,7 @@
"Variable",
"Private"
],
"Line": 78,
"Line": 75,
"Description": "When this Pool is threaded, a reference to the manager which holds the worker thread.",
"Type": "{ThreadProvider?}"
},
Expand Down Expand Up @@ -677,7 +677,44 @@
"{String} Method Method or property of the Connection to select.",
"{...Any} Parameters Additional parameters to give to the function."
],
"Returns": "{Promise<Any>} Result of the thread."
"Returns": "{Promise<Any>} Result from the thread."
},
{
"Value": "Set",
"Flags": [
"Async"
],
"Line": 66,
"Description": "Manages the elements of the database. Asynchronously performs this query.",
"Params": [
"{Pathlike} KeyOrPath Specifies at what row to insert or replace the element at.",
"{Object|Array|*} Value Data to set at the row address, at the location of the key or path."
],
"Returns": "{Promise<Any>} Result from the thread."
},
{
"Value": "Fetch",
"Flags": [
"Async"
],
"Line": 78,
"Description": "Manages the retrieval of the database. Asynchronously performs this query.",
"Params": [
"{Pathlike} KeyOrPath Specifies which row to fetch from the database."
],
"Returns": "{Promise<Any>} Result from the thread."
},
{
"Value": "Erase",
"Flags": [
"Async"
],
"Line": 89,
"Description": "Manages the deletion of the database. Asynchronously performs this query.",
"Params": [
"{...Pathlike} Keys A key or multiple keys to remove from the database."
],
"Returns": "{Promise<Any>} Result from the thread."
}
],
"PartialConnection": [
Expand Down

0 comments on commit fae70c4

Please sign in to comment.