Package io.micronaut.jdbc
Class JdbcDatabaseManager.JdbcDatabase
java.lang.Object
io.micronaut.jdbc.JdbcDatabaseManager.JdbcDatabase
- Direct Known Subclasses:
JdbcDatabaseManager.EmbeddedJdbcDatabase
- Enclosing class:
- JdbcDatabaseManager
Provides the required information in order to connect toa JDBC database, including the necessary driver and
validation query.
-
Method Summary
-
Method Details
-
isEmbedded
protected boolean isEmbedded()- Returns:
- Whether the database is embedded
-
getDriverClassName
- Returns:
- The name of the driver class
-
getValidationQuery
- Returns:
- The query to run to the validate the connection
-
containsPrefix
- Parameters:
prefix
- The prefix to check- Returns:
- Whether the url prefixes contain the prefix
-