```typescript
import { DatabaseSync } from "node:node__sqlite.d.ts";
```
DatabaseSync.prototype.close(): void
Closes the database connection. An exception is thrown if the database is not
open. This method is a wrapper around [`sqlite3_close_v2()`](https://www.sqlite.org/c3ref/close.html).