Files
klz-cables.com/.pnpm-store/v10/files/a6/6332289fa31a0f7d455feb88fe116f1163ed5b9dc11af33f00e90cfdb968bcb120573ec706f0ba751195bda187b06c97e19327c710085ace55e0b4154493ab
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

36 lines
979 B
Plaintext

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