close
The close method seals the handle and releases its Worker resources after already-started executions settle.
close(): Promise<void>Example
import {create} from 'tinyjoin';
const db = await create();
await db.exec(`
CREATE TABLE tasks (id TEXT PRIMARY KEY, title TEXT NOT NULL)
`);
const select = await db.prepare('SELECT * FROM tasks WHERE id = $1');
await select.execute(['a']);
await select.close();
console.log(select.closed);
// -> true
await db.close();