Initial commit

This commit is contained in:
Ammaar Reshi
2025-01-04 14:06:53 +00:00
parent 7082408604
commit d6025af146
23760 changed files with 3299690 additions and 0 deletions

29
node_modules/drizzle-orm/mysql-core/schema.js generated vendored Normal file
View File

@ -0,0 +1,29 @@
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