* Test the connection by trying to authenticate. It runs `SELECT 1+1 AS result` query. * * @param {object} [options={}] query options * * @returns {Promise}
(options)
| 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); |
no test coverage detected