Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/sqlite/src/db.ts>DB#close

Deno SQLite module
Go to Latest
method DB.prototype.close
import { DB } from "https://deno.land/x/sqlite@v3.5.0/src/db.ts";

Close the database. This must be called if the database is no longer used to avoid leaking open file descriptors.

If force = true is passed, any non-finalized PreparedQuery objects will be finalized. Otherwise, this throws if there are active queries.

close may safely be called multiple times.

Parameters

optional
force = [UNSUPPORTED]