TenantAtlas/apps/platform/.pnpm-store/v10/files/ed/90f08702cca4b35a29ccf11e548b4fe0eafa35cf156d4c642f8b1e3e34a8c0f4c60b75469c596f24a54abfab250f809726bc3f804f442624ba375907feb86c
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

30 lines
691 B
Plaintext

import { entityKind } from "../../entity.js";
import { MySqlColumn, MySqlColumnBuilder } from "./common.js";
class MySqlJsonBuilder extends MySqlColumnBuilder {
static [entityKind] = "MySqlJsonBuilder";
constructor(name) {
super(name, "json", "MySqlJson");
}
/** @internal */
build(table) {
return new MySqlJson(table, this.config);
}
}
class MySqlJson extends MySqlColumn {
static [entityKind] = "MySqlJson";
getSQLType() {
return "json";
}
mapToDriverValue(value) {
return JSON.stringify(value);
}
}
function json(name) {
return new MySqlJsonBuilder(name ?? "");
}
export {
MySqlJson,
MySqlJsonBuilder,
json
};
//# sourceMappingURL=json.js.map