Files
dealplustech/node_modules/drizzle-orm/mysql-core/schema.js
Kunthawat 77ac4d2d05 feat: Upgrade to Astro with full PDPA compliance
PDPA Features:
 Cookie consent banner
 Consent logging API
 Admin dashboard
 Privacy Policy
 Terms & Conditions

Technical:
 Astro 5.x + Tailwind v4
 Docker on port 80
 SQLite database
 15 pages built

Ready for Easypanel deployment.
2026-03-12 10:01:04 +07:00

29 lines
772 B
JavaScript

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