Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drizzle/pg-core/query-builders.ts>PgSelectBuilder

Deno port of the drizzle-orm library
Latest
class PgSelectBuilder
Re-export
import { PgSelectBuilder } from "https://deno.land/x/drizzle@v0.23.85/pg-core/query-builders.ts";

Constructors

new
PgSelectBuilder(
fields: TSelection,
session: PgSession | undefined,
dialect: PgDialect,
withList?: Subquery[],
)

Type Parameters

TSelection extends SelectedFields | undefined
optional
TBuilderMode extends "db" | "qb" = "db"

Properties

private
dialect
private
fields
private
session
private
withList

Methods

from<TFrom extends >(source: TFrom): CreatePgSelectFromBuilderMode<TBuilderMode, GetSelectTableName<TFrom>, TSelection extends undefined ? GetSelectTableSelection<TFrom> : TSelection, TSelection extends undefined ? "single" : "partial">