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

Usage in Deno

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

This method allows one or more SQL statements to be executed without returning any results. This method is useful when executing SQL statements read from a file. This method is a wrapper around sqlite3_exec().

Parameters

sql: string

A SQL string to execute.

Return Type

void