TenantAtlas/apps/platform/.pnpm-store/v10/files/5e/655948b6edecae8ba9cd884c6e179864e739ed0e9f02195b2e83d81c78be978edb93b0dff4171eb9bf57f924c06ec9c292055a2b83a5321e04e2cbc82886a5
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

32 lines
889 B
Plaintext

import { entityKind } from "../../entity.js";
import { getColumnNameAndConfig } from "../../utils.js";
import { MySqlColumn, MySqlColumnBuilder } from "./common.js";
class MySqlTimeBuilder extends MySqlColumnBuilder {
static [entityKind] = "MySqlTimeBuilder";
constructor(name, config) {
super(name, "string", "MySqlTime");
this.config.fsp = config?.fsp;
}
/** @internal */
build(table) {
return new MySqlTime(table, this.config);
}
}
class MySqlTime extends MySqlColumn {
static [entityKind] = "MySqlTime";
fsp = this.config.fsp;
getSQLType() {
const precision = this.fsp === void 0 ? "" : `(${this.fsp})`;
return `time${precision}`;
}
}
function time(a, b) {
const { name, config } = getColumnNameAndConfig(a, b);
return new MySqlTimeBuilder(name, config);
}
export {
MySqlTime,
MySqlTimeBuilder,
time
};
//# sourceMappingURL=time.js.map