UNPKG

drizzle-orm

Version:

Drizzle ORM package for SQL databases

27 lines 628 B
import { entityKind } from "../../entity.js"; import { PgColumn, PgColumnBuilder } from "./common.js"; class PgBooleanBuilder extends PgColumnBuilder { static [entityKind] = "PgBooleanBuilder"; constructor(name) { super(name, "boolean", "PgBoolean"); } /** @internal */ build(table) { return new PgBoolean(table, this.config); } } class PgBoolean extends PgColumn { static [entityKind] = "PgBoolean"; getSQLType() { return "boolean"; } } function boolean(name) { return new PgBooleanBuilder(name ?? ""); } export { PgBoolean, PgBooleanBuilder, boolean }; //# sourceMappingURL=boolean.js.map