Files
klz-cables.com/.pnpm-store/v10/files/ed/dfde2f1d41c6eefc961be2cb678a1fa7036de229dde9caaeb95fab59f30f65ceb2ccd7341a4f61146bca460342c90e7f4107a77ff5ee8c94d7b45144536ccc
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

39 lines
1.1 KiB
Plaintext

import { entityKind } from "../../entity.js";
import { getColumnNameAndConfig } from "../../utils.js";
import { SingleStoreColumnBuilderWithAutoIncrement, SingleStoreColumnWithAutoIncrement } from "./common.js";
class SingleStoreIntBuilder extends SingleStoreColumnBuilderWithAutoIncrement {
static [entityKind] = "SingleStoreIntBuilder";
constructor(name, config) {
super(name, "number", "SingleStoreInt");
this.config.unsigned = config ? config.unsigned : false;
}
/** @internal */
build(table) {
return new SingleStoreInt(
table,
this.config
);
}
}
class SingleStoreInt extends SingleStoreColumnWithAutoIncrement {
static [entityKind] = "SingleStoreInt";
getSQLType() {
return `int${this.config.unsigned ? " unsigned" : ""}`;
}
mapFromDriverValue(value) {
if (typeof value === "string") {
return Number(value);
}
return value;
}
}
function int(a, b) {
const { name, config } = getColumnNameAndConfig(a, b);
return new SingleStoreIntBuilder(name, config);
}
export {
SingleStoreInt,
SingleStoreIntBuilder,
int
};
//# sourceMappingURL=int.js.map