Files
klz-cables.com/.pnpm-store/v10/files/de/baa389afa028c61d6c6a6fc72296b7d59446437935a9a9ad2e1c2f6b0228d7fbdf6f07e53d9b1b65c2ee463144e38b8f2dd12fcc2a7a394b480a481c154274
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 { MySqlColumnBuilderWithAutoIncrement, MySqlColumnWithAutoIncrement } from "./common.js";
class MySqlMediumIntBuilder extends MySqlColumnBuilderWithAutoIncrement {
static [entityKind] = "MySqlMediumIntBuilder";
constructor(name, config) {
super(name, "number", "MySqlMediumInt");
this.config.unsigned = config ? config.unsigned : false;
}
/** @internal */
build(table) {
return new MySqlMediumInt(
table,
this.config
);
}
}
class MySqlMediumInt extends MySqlColumnWithAutoIncrement {
static [entityKind] = "MySqlMediumInt";
getSQLType() {
return `mediumint${this.config.unsigned ? " unsigned" : ""}`;
}
mapFromDriverValue(value) {
if (typeof value === "string") {
return Number(value);
}
return value;
}
}
function mediumint(a, b) {
const { name, config } = getColumnNameAndConfig(a, b);
return new MySqlMediumIntBuilder(name, config);
}
export {
MySqlMediumInt,
MySqlMediumIntBuilder,
mediumint
};
//# sourceMappingURL=mediumint.js.map