Files
klz-cables.com/.pnpm-store/v10/files/d6/7ace445dba596241fc000577d9e60da2509274c5c1c1453de97f9c6e9935b76607a434adb1ff5775d14075604f8f0a38eaec6c55a1bc8baba89d4231a799e5
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

37 lines
831 B
Plaintext

import { entityKind } from "../../entity.js";
import { PgColumn, PgColumnBuilder } from "./common.js";
class PgRealBuilder extends PgColumnBuilder {
static [entityKind] = "PgRealBuilder";
constructor(name, length) {
super(name, "number", "PgReal");
this.config.length = length;
}
/** @internal */
build(table) {
return new PgReal(table, this.config);
}
}
class PgReal extends PgColumn {
static [entityKind] = "PgReal";
constructor(table, config) {
super(table, config);
}
getSQLType() {
return "real";
}
mapFromDriverValue = (value) => {
if (typeof value === "string") {
return Number.parseFloat(value);
}
return value;
};
}
function real(name) {
return new PgRealBuilder(name ?? "");
}
export {
PgReal,
PgRealBuilder,
real
};
//# sourceMappingURL=real.js.map