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

Binds the given parameters to the query and returns an array containing all resulting rows.

Calling all 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.

See QueryParameter for documentation on how values are returned from the database.

Parameters

optional
params: P

Returns

Array<R>