Files
klz-cables.com/.pnpm-store/v10/files/f5/fe5e15a2ddf982fbdb2e2fc38898dd0c00222206e1555b4a318a9ec9ca323e3a605e56cf55af935af1957b8495bdeff6a390bc7e83861a90a03232e9a2537e
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 MySqlTinyIntBuilder extends MySqlColumnBuilderWithAutoIncrement {
static [entityKind] = "MySqlTinyIntBuilder";
constructor(name, config) {
super(name, "number", "MySqlTinyInt");
this.config.unsigned = config ? config.unsigned : false;
}
/** @internal */
build(table) {
return new MySqlTinyInt(
table,
this.config
);
}
}
class MySqlTinyInt extends MySqlColumnWithAutoIncrement {
static [entityKind] = "MySqlTinyInt";
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 MySqlTinyIntBuilder(name, config);
}
export {
MySqlTinyInt,
MySqlTinyIntBuilder,
tinyint
};
//# sourceMappingURL=tinyint.js.map