UNPKG

@sequeljs/ast

Version:

A SQL AST manager for JavaScript

22 lines 544 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @category Attributes */ class Attribute { constructor(relation, name) { this.name = name; this.relation = relation; } isAbleToTypeCast() { return this.relation.isAbleToTypeCast(); } lower() { return this.relation.lower(this); } typeCastForDatabase(value) { return this.relation.typeCastForDatabase(this.name, value); } } exports.default = Attribute; //# sourceMappingURL=Attribute.js.map