GoogleCloudPlatform / cloud-sql-nodejs-connector

A JavaScript library for connecting securely to your Cloud SQL instances
Apache License 2.0
66 stars 8 forks source link

chore: add comment about closing PrismaClient and Connector #353

Closed jackwotherspoon closed 3 months ago

jackwotherspoon commented 3 months ago

Adding explicit comment to Prisma examples to explain the close() method returned by connect().

The close() should be called when done with Prisma to gracefully disconnect client and cleanup the Connector which deletes all local Unix socket files.

Closes #345