TenantAtlas/apps/platform/.pnpm-store/v10/files/c2/21b7c7063b6359e865c4123978edfac8197b55456f313fa0d7424ed0370d5bdc784b79c3e42e7f833f5de491b58caab12e5871041f0937355ac412db4d3299
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

29 lines
772 B
Plaintext

import { entityKind, is } from "../entity.js";
import { mysqlTableWithSchema } from "./table.js";
import { mysqlViewWithSchema } from "./view.js";
class MySqlSchema {
constructor(schemaName) {
this.schemaName = schemaName;
}
static [entityKind] = "MySqlSchema";
table = (name, columns, extraConfig) => {
return mysqlTableWithSchema(name, columns, extraConfig, this.schemaName);
};
view = (name, columns) => {
return mysqlViewWithSchema(name, columns, this.schemaName);
};
}
function isMySqlSchema(obj) {
return is(obj, MySqlSchema);
}
function mysqlDatabase(name) {
return new MySqlSchema(name);
}
const mysqlSchema = mysqlDatabase;
export {
MySqlSchema,
isMySqlSchema,
mysqlDatabase,
mysqlSchema
};
//# sourceMappingURL=schema.js.map