Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/postgres/query/query.ts>Query

PostgreSQL driver for Deno
Extremely Popular
Go to Latest
class Query
import { Query } from "https://deno.land/x/postgres@v0.17.2/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