Files
klz-cables.com/.pnpm-store/v10/files/5d/d2bf07221f66722fa173234fb68cc695c6071c7f053cdde3042d937d0022d01d74f8af1c9e2cf380e437b0b12d46138874ebf9864a9751f88547e382ffb5cf
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

36 lines
807 B
Plaintext

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