TenantAtlas/apps/platform/.pnpm-store/v10/files/45/0409f247d0855847fbfaa8294f7ea7555d0de1622f2a7d661d050561f25fe1975d6c71a39729c2eb5a69cc46332ac79cb3ad4a3634f242aebdb277f5119b17
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

31 lines
798 B
Plaintext

import { entityKind } from "../../entity.js";
import { getColumnNameAndConfig } from "../../utils.js";
import { PgColumn, PgColumnBuilder } from "./common.js";
class PgTextBuilder extends PgColumnBuilder {
static [entityKind] = "PgTextBuilder";
constructor(name, config) {
super(name, "string", "PgText");
this.config.enumValues = config.enum;
}
/** @internal */
build(table) {
return new PgText(table, this.config);
}
}
class PgText extends PgColumn {
static [entityKind] = "PgText";
enumValues = this.config.enumValues;
getSQLType() {
return "text";
}
}
function text(a, b = {}) {
const { name, config } = getColumnNameAndConfig(a, b);
return new PgTextBuilder(name, config);
}
export {
PgText,
PgTextBuilder,
text
};
//# sourceMappingURL=text.js.map