UNPKG

drizzle-orm

Version:

Drizzle ORM package for SQL databases

27 lines 601 B
import { entityKind } from "../../entity.js"; import { GelColumn, GelColumnBuilder } from "./common.js"; class GelUUIDBuilder extends GelColumnBuilder { static [entityKind] = "GelUUIDBuilder"; constructor(name) { super(name, "string", "GelUUID"); } /** @internal */ build(table) { return new GelUUID(table, this.config); } } class GelUUID extends GelColumn { static [entityKind] = "GelUUID"; getSQLType() { return "uuid"; } } function uuid(name) { return new GelUUIDBuilder(name ?? ""); } export { GelUUID, GelUUIDBuilder, uuid }; //# sourceMappingURL=uuid.js.map