Closes the database connection with optional timeout in seconds. If timeout is 0, it will close immediately, if is not provided it will wait for all queries to finish before closing. This is an alias of SQL.close
SQL.end method | Bun module | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/SQL/endMend BuildDocsReferenceGuidesBlogDiscord /Bun/SQL/endMend SQL.endend(options?: { timeout: number }): Promisevoid>; @param options
Search the reference...
/
method
The options for the close
await sql.end({ timeout: 1 });
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →SQL.end method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method bun.SQL.end | Bun