Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method PreparedQuery.prototype.finalize
import { PreparedQuery } from "https://deno.land/x/sqlite@v3.9.1/src/query.ts";

Closes the prepared query. This must be called once the query is no longer needed to avoid leaking resources.

After a prepared query has been finalized, calls to iter, all, first, execute, or columns will fail.

Using iterators which were previously returned from the finalized query will fail.

finalize may safely be called multiple times.