MCPcopy
hub / github.com/sequelize/sequelize / authenticate

Method authenticate

src/sequelize.js:964–975  ·  view source on GitHub ↗

* Test the connection by trying to authenticate. It runs `SELECT 1+1 AS result` query. * * @param {object} [options={}] query options * * @returns {Promise}

(options)

Source from the content-addressed store, hash-verified

962 * @returns {Promise}
963 */
964 async authenticate(options) {
965 options = {
966 raw: true,
967 plain: true,
968 type: QueryTypes.SELECT,
969 ...options
970 };
971
972 await this.query(this.dialect.queryGenerator.authTestQuery(), options);
973
974 return;
975 }
976
977 async databaseVersion(options) {
978 return await this.getQueryInterface().databaseVersion(options);

Callers 12

syncMethod · 0.95
check.jsFile · 0.80
check.jsFile · 0.80
check.jsFile · 0.80
check.jsFile · 0.80
check.jsFile · 0.80
check.jsFile · 0.80
sequelize.test.jsFile · 0.80
pool.test.jsFile · 0.80
warning.test.jsFile · 0.80
hooks.test.jsFile · 0.80

Calls 2

queryMethod · 0.95
authTestQueryMethod · 0.45

Tested by

no test coverage detected