Files
klz-cables.com/.pnpm-store/v10/files/e4/8dcfdf117dfcd00ce6328f794785f4bf45d0a7897588eb8e11eca852da867991d0e72f82edc48db280dbcefdba51b2430d551908ea008429e286a7fe75a0a0
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
777 B
Plaintext

import { entityKind } from "../../entity.js";
import { sql } from "../../sql/sql.js";
import { PgColumn, PgColumnBuilder } from "./common.js";
class PgUUIDBuilder extends PgColumnBuilder {
static [entityKind] = "PgUUIDBuilder";
constructor(name) {
super(name, "string", "PgUUID");
}
/**
* Adds `default gen_random_uuid()` to the column definition.
*/
defaultRandom() {
return this.default(sql`gen_random_uuid()`);
}
/** @internal */
build(table) {
return new PgUUID(table, this.config);
}
}
class PgUUID extends PgColumn {
static [entityKind] = "PgUUID";
getSQLType() {
return "uuid";
}
}
function uuid(name) {
return new PgUUIDBuilder(name ?? "");
}
export {
PgUUID,
PgUUIDBuilder,
uuid
};
//# sourceMappingURL=uuid.js.map