TenantAtlas/apps/platform/.pnpm-store/v10/files/8e/86dc2b4746085b204969d9686217dd91558d785165c4c3d8b960d12d6d08ad34119d94e3679f9b855022babda0df3666a90718c450bde30b03a33549fe9ee7
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
898 B
Plaintext

import { entityKind } from "../../entity.js";
import { GelColumn, GelColumnBuilder } from "./common.js";
class GelDoublePrecisionBuilder extends GelColumnBuilder {
static [entityKind] = "GelDoublePrecisionBuilder";
constructor(name) {
super(name, "number", "GelDoublePrecision");
}
/** @internal */
build(table) {
return new GelDoublePrecision(
table,
this.config
);
}
}
class GelDoublePrecision extends GelColumn {
static [entityKind] = "GelDoublePrecision";
getSQLType() {
return "double precision";
}
mapFromDriverValue(value) {
if (typeof value === "string") {
return Number.parseFloat(value);
}
return value;
}
}
function doublePrecision(name) {
return new GelDoublePrecisionBuilder(name ?? "");
}
export {
GelDoublePrecision,
GelDoublePrecisionBuilder,
doublePrecision
};
//# sourceMappingURL=double-precision.js.map