Files
klz-cables.com/.pnpm-store/v10/files/c3/42ded1a860b070b41f1ece7b8808706ce5b283f49d11a6ff5a36feef0dd77b7837b91178f0ffa9c7030cfff0ef66e67e003baf46b109d93e35bf117f144b85
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
1.1 KiB
Plaintext

import { entityKind } from "../../entity.js";
import { getColumnNameAndConfig } from "../../utils.js";
import { SingleStoreColumn, SingleStoreColumnBuilder } from "./common.js";
class SingleStoreVarCharBuilder extends SingleStoreColumnBuilder {
static [entityKind] = "SingleStoreVarCharBuilder";
/** @internal */
constructor(name, config) {
super(name, "string", "SingleStoreVarChar");
this.config.length = config.length;
this.config.enum = config.enum;
}
/** @internal */
build(table) {
return new SingleStoreVarChar(
table,
this.config
);
}
}
class SingleStoreVarChar extends SingleStoreColumn {
static [entityKind] = "SingleStoreVarChar";
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 SingleStoreVarCharBuilder(name, config);
}
export {
SingleStoreVarChar,
SingleStoreVarCharBuilder,
varchar
};
//# sourceMappingURL=varchar.js.map