PgDialect
class PgDialect { }
private buildSelection;
buildRefreshMaterializedViewQuery({ view, concurrently, withNoData }: {
view: PgMaterializedView;
concurrently?: boolean;
withNoData?: boolean;
}): SQL;buildSelectQuery({ withList, fieldsList, where, having, table, joins, orderBy, groupBy, limit, offset, lockingClauses }: PgSelectConfig): SQL;
escapeName(name: string): string;
escapeParam(num: number): string;
escapeString(str: string): string;
§Properties
§
buildSelection
[src]Builds selection SQL with provided fields/expressions
Examples:
select <selection> from
insert ... returning <selection>
If isSingleTable
is true, then columns won't be prefixed with table name
§Methods
§
buildDeleteQuery({ table, where, returning }: PgDeleteConfig): SQL
[src]§
buildInsertQuery({ table, values, onConflict, returning }: PgInsertConfig): SQL
[src]§
buildRefreshMaterializedViewQuery({ view, concurrently, withNoData }: {
[src]view: PgMaterializedView;
concurrently?: boolean;
withNoData?: boolean;
}): SQL§
buildSelectQuery({ withList, fieldsList, where, having, table, joins, orderBy, groupBy, limit, offset, lockingClauses }: PgSelectConfig): SQL
[src]§
buildUpdateQuery({ table, set, where, returning }: PgUpdateConfig): SQL
[src]§
prepareTyping(encoder: DriverValueEncoder<unknown, unknown>): QueryTypingsValue
[src]