MCPcopy
hub / github.com/sequelize/sequelize / addSchema

Method addSchema

lib/dialects/abstract/query-generator.js:52–65  ·  lib/dialects/abstract/query-generator.js::QueryGenerator.addSchema
(param)

Source from the content-addressed store, hash-verified

50 }
51
52 addSchema(param) {
53 if (!param._schema) return param.tableName || param;
54 const self = this;
55 return {
56 tableName: param.tableName || param,
57 table: param.tableName || param,
58 name: param.name || param,
59 schema: param._schema,
60 delimiter: param._schemaDelimiter || class="st">'.',
61 toString() {
62 return self.quoteTable(this);
63 }
64 };
65 }
66
67 dropSchema(tableName, options) {
68 return this.dropTableQuery(tableName, options);

Callers 13

describeTableQueryMethod · 0.95
getTableNameMethod · 0.80
createTableMethod · 0.80
attributeToSQLMethod · 0.80
describeTableQueryMethod · 0.80
createTableMethod · 0.80
describeTableQueryMethod · 0.80
getForeignKeysQueryMethod · 0.80
describeTableQueryMethod · 0.80
has-one.test.jsFile · 0.80
has-many.test.jsFile · 0.80
belongs-to.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected