Skip to content

Commit c3678eb

Browse files
authored
Merge pull request #59 from jamesmosier/patch-1
Update README with info about accessing getClient
2 parents 8c73e0c + e339fd6 commit c3678eb

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)