Files
klz-cables.com/.pnpm-store/v10/files/3d/4180f1a29b449e7f378d64b895b065d7d6b9a305167b4ad8e826178409f4cac936ea80a30fd3e434d00153f6c6790fe54a536e9bad113ca96e001297d31dfc
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
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