Module

x/postgres/query/query.ts>Query

PostgreSQL driver for Deno
Extremely Popular
Go to Latest
class Query
import { Query } from "https://dotland.deno.dev/x/postgres@v0.19.0/query/query.ts";

This class is used to handle the query to be executed by the database

Constructors

new
Query(config: QueryObjectOptions, result_type: T)
new
Query(
text: string,
result_type: T,
)
new
Query(
config_or_text: string | QueryObjectOptions,
result_type: T,
)

Properties

args: EncodedArg[]
optional
camelCase: boolean
optional
fields: string[]

The explicitly set fields for the query result, they have been validated beforehand for duplicates and invalid names

result_type: ResultType
text: string