Skip to main content
DatabaseSync.prototype.exec - node__sqlite.d.ts - Node documentation
method DatabaseSync.prototype.exec

Usage in Deno

```typescript import { DatabaseSync } from "node:node__sqlite.d.ts"; ```
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()`](https://www.sqlite.org/c3ref/exec.html).

Parameters

sql: string
A SQL string to execute.

Return Type

void