Support for libSQL and new health checks
This release adds first-class support for libSQL and removes all options + types + methods related to legacy way of doing health checks. Instead, you must use the following two classes to register health checks with AdonisJS v6.
import db from '@adonisjs/lucid/services/db'
import { DbConnectionCountCheck, DbCheck } from '@adonisjs/lucid/database'
new HealthChecks().register([
new DbCheck(db.connection()),
new DbConnectionCountCheck(db.connection())
])
Breaking changes
- The
config.healthCheck
property - Remove
connection.getReport
method. - Remove
connectionManager.report
method. - Remove
ReportNode
type.
Deprecations
- Deprecate
connection.dialectName
in favor ofconnection.clientName
. TheclientName
refers to the npm clients you can use with Knex anddialectName
refers to the Lucid dialects. One dialect can be used with multiple clients. For example, the MySQL dialect can be used withmysql
andmysql2
clients.
Commits
- test: another attempt at fixing broken tests 8a4df1c
- test: fix breaking tests 2d9697b
- refactor: update usages of dialectName with clientName 7fedbfe
- feat: add support for libsql and cleanup clients to dialects mapping 95f11d1
- feat: export health check classes 1b32dca
- feat: add database health checks and remove legacy health check flag 0373e7f
- refactor: remove legacy health checks 32f377e
- test: fix broken types 44da18c
- chore: update peer dependencies 9dbd7fc
- chore: update dependencies bdc32b5
Full Changelog: v20.6.0...v21.0.0