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

38 lines
1013 B
Plaintext

import { entityKind } from "../../entity.js";
import { SingleStoreColumnBuilderWithAutoIncrement, SingleStoreColumnWithAutoIncrement } from "./common.js";
class SingleStoreSerialBuilder extends SingleStoreColumnBuilderWithAutoIncrement {
static [entityKind] = "SingleStoreSerialBuilder";
constructor(name) {
super(name, "number", "SingleStoreSerial");
this.config.hasDefault = true;
this.config.autoIncrement = true;
}
/** @internal */
build(table) {
return new SingleStoreSerial(
table,
this.config
);
}
}
class SingleStoreSerial extends SingleStoreColumnWithAutoIncrement {
static [entityKind] = "SingleStoreSerial";
getSQLType() {
return "serial";
}
mapFromDriverValue(value) {
if (typeof value === "string") {
return Number(value);
}
return value;
}
}
function serial(name) {
return new SingleStoreSerialBuilder(name ?? "");
}
export {
SingleStoreSerial,
SingleStoreSerialBuilder,
serial
};
//# sourceMappingURL=serial.js.map