Files
klz-cables.com/.pnpm-store/v10/files/64/5d77a7960d735cc24da33d41e404d54227baef80024d9230896bbf209a3e37d27550912c9d60bc514624da453c2fb234bbb76dd655e47edbc767d9e51af964
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

34 lines
936 B
Plaintext

import { entityKind } from "../../../entity.js";
import { getColumnNameAndConfig } from "../../../utils.js";
import { PgColumn, PgColumnBuilder } from "../common.js";
class PgSparseVectorBuilder extends PgColumnBuilder {
static [entityKind] = "PgSparseVectorBuilder";
constructor(name, config) {
super(name, "string", "PgSparseVector");
this.config.dimensions = config.dimensions;
}
/** @internal */
build(table) {
return new PgSparseVector(
table,
this.config
);
}
}
class PgSparseVector extends PgColumn {
static [entityKind] = "PgSparseVector";
dimensions = this.config.dimensions;
getSQLType() {
return `sparsevec(${this.dimensions})`;
}
}
function sparsevec(a, b) {
const { name, config } = getColumnNameAndConfig(a, b);
return new PgSparseVectorBuilder(name, config);
}
export {
PgSparseVector,
PgSparseVectorBuilder,
sparsevec
};
//# sourceMappingURL=sparsevec.js.map