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
@@ -472,7 +472,7 @@ const [custom] = sql`
472
472
473
473
## Teardown / Cleanup
474
474
475
-
To ensure proper teardown and cleanup on server restarts use `sql.end({ timeout: null })` before `process.exit()`
475
+
To ensure proper teardown and cleanup on server restarts use `sql.end({ timeout: null })` before `process.exit()`.
476
476
477
477
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