MCPcopy
hub / github.com/sequelize/sequelize / showAllSchemas

Method showAllSchemas

lib/dialects/abstract/query-interface.js:104–116  ·  view source on GitHub ↗

* Show all schemas * * @param {object} [options] Query options * * @returns {Promise<Array>}

(options)

Source from the content-addressed store, hash-verified

102 * @returns {Promise<Array>}
103 */
104 async showAllSchemas(options) {
105 options = {
106 ...options,
107 raw: true,
108 type: this.sequelize.QueryTypes.SELECT
109 };
110
111 const showSchemasSql = this.queryGenerator.showSchemasQuery(options);
112
113 const schemaNames = await this.sequelize.query(showSchemasSql, options);
114
115 return _.flatten(schemaNames.map(value => value.schema_name ? value.schema_name : value));
116 }
117
118 /**
119 * Return database version

Callers 1

dropAllSchemasMethod · 0.95

Calls 2

showSchemasQueryMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected