Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ escapeId: an utility to escape query identifiers

Example:
```js
const fastify = require('fastify')
const fastify = require('fastify')()

fastify.register(require('fastify-mysql'), {
connectionString: 'mysql://root@localhost/mysql'
Expand Down Expand Up @@ -55,7 +55,7 @@ fastify.listen(3000, err => {

Use of `mysql.query`
```js
const fastify = require('fastify')
const fastify = require('fastify')()

fastify.register(require('fastify-mysql'), {
connectionString: 'mysql://root@localhost/mysql'
Expand All @@ -79,7 +79,7 @@ As you can see there is no need to close the client, since is done internally.

Async/await is supported, when register `promise` option is `true`:
```js
const fastify = require('fastify')
const fastify = require('fastify')()

fastify.register(require('fastify-mysql'), {
promise: true,
Expand Down