TenantAtlas/apps/platform/.pnpm-store/v10/files/3d/4180f1a29b449e7f378d64b895b065d7d6b9a305167b4ad8e826178409f4cac936ea80a30fd3e434d00153f6c6790fe54a536e9bad113ca96e001297d31dfc
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

36 lines
885 B
Plaintext

import { entityKind } from "../../entity.js";
import { SingleStoreColumn, SingleStoreColumnBuilder } from "./common.js";
class SingleStoreBooleanBuilder extends SingleStoreColumnBuilder {
static [entityKind] = "SingleStoreBooleanBuilder";
constructor(name) {
super(name, "boolean", "SingleStoreBoolean");
}
/** @internal */
build(table) {
return new SingleStoreBoolean(
table,
this.config
);
}
}
class SingleStoreBoolean extends SingleStoreColumn {
static [entityKind] = "SingleStoreBoolean";
getSQLType() {
return "boolean";
}
mapFromDriverValue(value) {
if (typeof value === "boolean") {
return value;
}
return value === 1;
}
}
function boolean(name) {
return new SingleStoreBooleanBuilder(name ?? "");
}
export {
SingleStoreBoolean,
SingleStoreBooleanBuilder,
boolean
};
//# sourceMappingURL=boolean.js.map