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

Method authenticate

lib/sequelize.js:882–893  ·  lib/sequelize.js::Sequelize.authenticate

* 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

880 * @returns {Promise}
881 */
882 async authenticate(options) {
883 options = {
884 raw: true,
885 plain: true,
886 type: QueryTypes.SELECT,
887 ...options
888 };
889
890 await this.query(class="st">'SELECT 1+1 AS result', options);
891
892 return;
893 }
894
895 async databaseVersion(options) {
896 return await this.getQueryInterface().databaseVersion(options);

Callers 10

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

Calls 1

queryMethod · 0.95

Tested by

no test coverage detected