Package io.micronaut.jdbc
Class JdbcDatabaseManager.EmbeddedJdbcDatabase
java.lang.Object
io.micronaut.jdbc.JdbcDatabaseManager.JdbcDatabase
io.micronaut.jdbc.JdbcDatabaseManager.EmbeddedJdbcDatabase
- Enclosing class:
- JdbcDatabaseManager
public static class JdbcDatabaseManager.EmbeddedJdbcDatabase
extends JdbcDatabaseManager.JdbcDatabase
Extends
JdbcDatabaseManager.JdbcDatabase
with additional defaults for the use of embedded databases such as H2.-
Method Summary
Modifier and TypeMethodDescriptionObtain an embedded database URL for the given database name.protected boolean
Methods inherited from class io.micronaut.jdbc.JdbcDatabaseManager.JdbcDatabase
containsPrefix, getDriverClassName, getValidationQuery
-
Method Details
-
getUrl
Obtain an embedded database URL for the given database name.- Parameters:
databaseName
- The database name- Returns:
- The URL
-
isEmbedded
protected boolean isEmbedded()- Overrides:
isEmbedded
in classJdbcDatabaseManager.JdbcDatabase
- Returns:
- Whether the database is embedded
-