Skip to main content
Go to Latest
method PreparedQuery.prototype.execute
import { PreparedQuery } from "https://deno.land/x/sqlite@v3.4.0/mod.ts";

Binds the given parameters to the query and executes the query, ignoring any rows which might be returned.

Using this method is more efficient when the rows returned by a query are not needed or the query does not return any rows.

Calling execute invalidates any iterators previously returned by calls to iter. Using an invalidated iterator is a bug.

To avoid SQL injection, user-provided values should always be passed to the database through a query parameter.

See QueryParameterSet for documentation on how values can be bound to SQL statements.

Parameters

optional
params: P