UNPKG

@sequeljs/ast

Version:

A SQL AST manager for JavaScript

23 lines 1.01 kB
import Attribute from './attributes/Attribute'; import SQLLiteral from './nodes/SQLLiteral'; import TableAlias from './nodes/TableAlias'; import type TypeCaster from './interfaces/TypeCaster'; import type CRUD from './mixins/CRUD'; import type FactoryMethods from './mixins/FactoryMethods'; import type SelectPredications from './mixins/SelectPredications'; import type Visitable from './visitors/Visitable'; declare class Table implements TypeCaster { name: string; tableAlias: TableAlias | string | null; protected typeCaster: TypeCaster; get tableName(): string; constructor(name: string, as?: TableAlias | string | null, typeCaster?: any); alias(name?: string | null): TableAlias; get(name: string | SQLLiteral): Attribute; isAbleToTypeCast(): boolean; typeCastForDatabase(attributeName: string | SQLLiteral, value: Visitable): number | string; } interface Table extends CRUD, FactoryMethods, SelectPredications { } export default Table; //# sourceMappingURL=Table.d.ts.map