Files
klz-cables.com/.pnpm-store/v10/files/48/68a5b59c93b40f2ae6c2252834352dacb0b6893ff34376cc3fd2bbea60b9d892f46b48c929c688de0bf9361182cf0580f13a0027f8ccdd15dfb8f69c9def41
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
912 B
Plaintext

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