You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -487,7 +487,7 @@ const [custom] = sql`
487
487
488
488
## Teardown / Cleanup
489
489
490
-
To ensure proper teardown and cleanup on server restarts use `sql.end({ timeout: null })` before `process.exit()`.
490
+
To ensure proper teardown and cleanup on server restarts use `sql.end({ timeout: 0 })` before `process.exit()`.
491
491
492
492
Calling `sql.end()` will reject new queries and return a Promise which resolves when all queries are finished and the underlying connections are closed. If a timeout is provided any pending queries will be rejected once the timeout is reached and the connections will be destroyed.
0 commit comments