Skip to main content
DatabaseSync.prototype.prepare - sqlite - Node documentation
method DatabaseSync.prototype.prepare

Usage in Deno

import { DatabaseSync } from "node:sqlite";
DatabaseSync.prototype.prepare(sql: string): StatementSync

Compiles a SQL statement into a prepared statement. This method is a wrapper around sqlite3_prepare_v2().

Parameters

sql: string

A SQL string to compile to a prepared statement.

Return Type

The prepared statement.