UNPKG

@sequeljs/ast

Version:

A SQL AST manager for JavaScript

65 lines 3 kB
import Except from '../nodes/Except'; import Exists from '../nodes/Exists'; import Intersect from '../nodes/Intersect'; import Join from '../nodes/Join'; import Lateral from '../nodes/Lateral'; import NamedWindow from '../nodes/NamedWindow'; import SQLLiteral from '../nodes/SQLLiteral'; import SelectStatement from '../nodes/SelectStatement'; import Union from '../nodes/Union'; import UnionAll from '../nodes/UnionAll'; import TreeManager from './TreeManager'; import type Engine from '../interfaces/Engine'; import type Relation from '../interfaces/Relation'; import type CRUD from '../mixins/CRUD'; import type SelectCore from '../nodes/SelectCore'; import type TableAlias from '../nodes/TableAlias'; declare class SelectManager extends TreeManager<SelectManager, SelectStatement> { protected ctx: SelectCore; get constraints(): SelectCore['wheres']; get froms(): SelectStatement['cores']; get joinSources(): SelectCore['source']['right']; get limit(): SelectStatement['limit']['expr']; set limit(limit: SelectStatement['limit']['expr']); get locked(): SelectStatement['lock']; get offset(): SelectStatement['offset']['expr']; set offset(amount: SelectStatement['offset']['expr']); get orders(): SelectStatement['orders']; get projections(): SelectCore['projections']; set projections(projections: SelectCore['projections']); get source(): SelectCore['source']; get taken(): SelectManager['limit']; constructor(table?: any); private collapse; as(other: any): TableAlias; comment(...values: any): SelectManager; distinct(value?: boolean): SelectManager; distinctOn(value: any): SelectManager; except(other: TreeManager<SelectManager, SelectStatement>): Except; exists(): Exists; from(table: any): SelectManager; group(...columns: any[]): this; having(expr: any): SelectManager; intersect(other: TreeManager<SelectManager, SelectStatement>): Intersect; join(relation: string | Relation | SQLLiteral | null, klass?: typeof Join): SelectManager; lateral(tableName?: string | null): Lateral; lock(locking?: any): SelectManager; minus(other: TreeManager<SelectManager, SelectStatement>): Except; on(...exprs: any[]): SelectManager; optimizerHints(...hints: any[]): SelectManager; order(...expr: any[]): SelectManager; outerJoin(relation: Relation | null): SelectManager; project(...projections: any[]): SelectManager; skip(amount: any): SelectManager; take(limit: any): SelectManager; union(other: TreeManager<SelectManager, SelectStatement>): Union; unionAll(other: TreeManager<SelectManager, SelectStatement>): UnionAll; whereSQL(engine?: Engine | null | undefined): SQLLiteral | null; window(name: any): NamedWindow; with(...subqueries: any[]): SelectManager; withRecursive(...subqueries: any[]): SelectManager; } interface SelectManager extends CRUD { } export default SelectManager; //# sourceMappingURL=SelectManager.d.ts.map