UNPKG

@sequeljs/ast

Version:

A SQL AST manager for JavaScript

26 lines 1.13 kB
import type Relation from '../interfaces/Relation'; import type AliasPredication from '../mixins/AliasPredication'; import type ConcatPredication from '../mixins/ConcatPredication'; import type Expressions from '../mixins/Expressions'; import type Math from '../mixins/Math'; import type OrderPredications from '../mixins/OrderPredications'; import type Predications from '../mixins/Predications'; import type WhenPredication from '../mixins/WhenPredication'; import type NamedSQLFunction from '../nodes/NamedSQLFunction'; import type SQLLiteral from '../nodes/SQLLiteral'; import type Visitable from '../visitors/Visitable'; /** * @category Attributes */ declare class Attribute { relation: Relation; name: string | SQLLiteral; constructor(relation: Relation, name: string | SQLLiteral); isAbleToTypeCast(): boolean; lower(): NamedSQLFunction; typeCastForDatabase(value: Visitable): number | string; } interface Attribute extends AliasPredication, ConcatPredication, Expressions, Math, OrderPredications, Predications, WhenPredication { } export default Attribute; //# sourceMappingURL=Attribute.d.ts.map