UNPKG

drizzle-orm

Version:

Drizzle ORM package for SQL databases

44 lines 971 B
import { entityKind } from "./entity.js"; class Column { constructor(table, config) { this.table = table; this.config = config; this.name = config.name; this.notNull = config.notNull; this.default = config.default; this.defaultFn = config.defaultFn; this.onUpdateFn = config.onUpdateFn; this.hasDefault = config.hasDefault; this.primary = config.primaryKey; this.isUnique = config.isUnique; this.uniqueName = config.uniqueName; this.uniqueType = config.uniqueType; this.dataType = config.dataType; this.columnType = config.columnType; } static [entityKind] = "Column"; name; primary; notNull; default; defaultFn; onUpdateFn; hasDefault; isUnique; uniqueName; uniqueType; dataType; columnType; enumValues = void 0; config; mapFromDriverValue(value) { return value; } mapToDriverValue(value) { return value; } } export { Column }; //# sourceMappingURL=column.js.map