Files
klz-cables.com/.pnpm-store/v10/files/bf/65e79bcf1b240e36fe1a7596c9468f4e307f03a35feb5e31ff9cfcaa5631b284333dbe867486cfc733673fff18a22faf9cd75eec8397f7613f32956cd67e4c
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

37 lines
1020 B
Plaintext

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