Files
klz-cables.com/.pnpm-store/v10/files/5e/655948b6edecae8ba9cd884c6e179864e739ed0e9f02195b2e83d81c78be978edb93b0dff4171eb9bf57f924c06ec9c292055a2b83a5321e04e2cbc82886a5
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

32 lines
889 B
Plaintext

import { entityKind } from "../../entity.js";
import { getColumnNameAndConfig } from "../../utils.js";
import { MySqlColumn, MySqlColumnBuilder } from "./common.js";
class MySqlTimeBuilder extends MySqlColumnBuilder {
static [entityKind] = "MySqlTimeBuilder";
constructor(name, config) {
super(name, "string", "MySqlTime");
this.config.fsp = config?.fsp;
}
/** @internal */
build(table) {
return new MySqlTime(table, this.config);
}
}
class MySqlTime extends MySqlColumn {
static [entityKind] = "MySqlTime";
fsp = this.config.fsp;
getSQLType() {
const precision = this.fsp === void 0 ? "" : `(${this.fsp})`;
return `time${precision}`;
}
}
function time(a, b) {
const { name, config } = getColumnNameAndConfig(a, b);
return new MySqlTimeBuilder(name, config);
}
export {
MySqlTime,
MySqlTimeBuilder,
time
};
//# sourceMappingURL=time.js.map