We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4b0744 commit 03f466bCopy full SHA for 03f466b
Readme.md
@@ -210,6 +210,22 @@ Unlike `end()` the `destroy()` method does not take a callback argument.
210
211
## Pooling connections
212
213
+Use pool directly.
214
+```js
215
+var mysql = require('mysql');
216
+var pool = mysql.createPool({
217
+ host : 'example.org',
218
+ user : 'bob',
219
+ password : 'secret'
220
+});
221
+
222
+pool.query('SELECT 1 + 1 AS solution', function(err, rows, fields) {
223
+ if (err) throw err;
224
225
+ console.log('The solution is: ', rows[0].solution);
226
227
+```
228
229
Connections can be pooled to ease sharing a single connection, or managing
230
multiple connections.
231
0 commit comments