MCPcopy
hub / github.com/sequelize/sequelize / describe

Method describe

lib/model.js:3256–3258  ·  view source on GitHub ↗

* Run a describe query on the table. * * @param {string} [schema] schema name to search table in * @param {object} [options] query options * * @returns {Promise} hash of attributes and their types

(schema, options)

Source from the content-addressed store, hash-verified

3254 * @returns {Promise} hash of attributes and their types
3255 */
3256 static async describe(schema, options) {
3257 return await this.queryInterface.describeTable(this.tableName, { schema: schema || this._schema || undefined, ...options });
3258 }
3259
3260 static _getDefaultTimestamp(attr) {
3261 if (!!this.rawAttributes[attr] && !!this.rawAttributes[attr].defaultValue) {

Callers 2

sync.test.jsFile · 0.80
field.test.jsFile · 0.80

Calls 1

describeTableMethod · 0.45

Tested by

no test coverage detected