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 54e70d2Copy full SHA for 54e70d2
README.md
@@ -170,6 +170,14 @@ 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
177
+Throws an error on failure.
178
179
+*Returns*: `true`
180
181
### `pool = mysql.pool_create(opts)`
182
183
Create a connection pool with count of size established connections.
@@ -216,6 +224,12 @@ Return a connection to connection pool.
216
224
217
225
- `conn` - a connection
218
226
227
+### `pool:close()`
228
229
+Close all connections in pool.
230
231
232
219
233
## Comments
220
234
221
235
All calls to connections api will be serialized, so it should to be safe to
0 commit comments