Skip to content

Commit e339fd6

Browse files
authored
Update README with info about accessing getClient
1 parent 8c73e0c commit e339fd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ mysql.quit()
124124
If you need access to the `connection` object, you can use the `getClient()` method. This will allow you to use any supported feature of the `mysql` module directly.
125125

126126
```javascript
127+
// Connect to your MySQL instance first
128+
await mysql.connect()
127129
// Get the connection object
128130
let connection = mysql.getClient()
129131

0 commit comments

Comments
 (0)