UNPKG

@sequeljs/ast

Version:

A SQL AST manager for JavaScript

20 lines 464 B
/** * @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); } } export default Attribute; //# sourceMappingURL=Attribute.js.map