We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f08e732 commit f9e8508Copy full SHA for f9e8508
README.md
@@ -170,6 +170,13 @@ Quote a query string.
170
- `quoted_string` on success
171
- `error(reason)` on error
172
173
+### `conn:close()`
174
+
175
+Close the individual connection or return it to a pool.
176
+Throws an error on failure.
177
178
+*Returns*: `true`
179
180
### `pool = mysql.pool_create(opts)`
181
182
Create a connection pool with count of size established connections.
@@ -216,6 +223,12 @@ Return a connection to connection pool.
216
223
217
224
- `conn` - a connection
218
225
226
+### `pool:close()`
227
228
+Close all connections in pool.
229
230
231
219
232
## Comments
220
233
221
234
All calls to connections api will be serialized, so it should to be safe to
0 commit comments