@sqb/builder
Version:
Extensible multi-dialect SQL query builder written with TypeScript
30 lines (29 loc) • 966 B
TypeScript
import { SerializationType } from '../enums.js';
import { SerializeContext } from '../serialize-context.js';
import { LogicalOperator } from '../sql-objects/operators/logical-operator.js';
import { RawStatement } from '../sql-objects/raw-statement.js';
import { TableName } from '../sql-objects/table-name.js';
import { ReturningQuery } from './returning-query.js';
export declare class UpdateQuery extends ReturningQuery {
_table: TableName | RawStatement;
_input: any;
_where?: LogicalOperator;
constructor(tableName: string | RawStatement, input: any);
get _type(): SerializationType;
/**
* Defines "where" part of query
*/
where(...operator: any[]): this;
/**
* Performs serialization
*/
_serialize(ctx: SerializeContext): string;
/**
*
*/
protected __serializeValues(ctx: SerializeContext): string;
/**
*
*/
protected __serializeWhere(ctx: SerializeContext): string;
}