Files
klz-cables.com/.pnpm-store/v10/files/8b/98648d40096f34a4b615379ecd47ba57de5cd71ff3294d1fc598a9b4bf5a67ce5fec485c61723416e9bdc0c318b7de442c1caa8c9d981eff56e836dcae55e0
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.2 KiB
Plaintext

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