Const
The StatementSync class represents a prepared SQL statement. This class should not be instantiated directly; use DatabaseSync.prepare() instead.
const stmt = db.prepare('SELECT * FROM users WHERE id = ?');const user = stmt.get(123);stmt.finalize(); Copy
const stmt = db.prepare('SELECT * FROM users WHERE id = ?');const user = stmt.get(123);stmt.finalize();
The StatementSync class represents a prepared SQL statement. This class should not be instantiated directly; use DatabaseSync.prepare() instead.