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