The current API does not allow one to get access to the ConnectionFactory a DatabaseClient uses. This would avoid some potential inconsistencies when we need to access the ConnectionFactory (typically to detect the dialect to use).

See also https://github.com/spring-projects/spring-boot/issues/22708#issuecomment-668125351