Class DataDriverConfiguration
java.lang.Object
io.micronaut.starter.feature.database.DataDriverConfiguration
- Direct Known Subclasses:
DataJdbc
Abstract base class for configuring database-specific recipes
used in Micronaut Data features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDatabaseConfigRecipe
(GeneratorContext generatorContext, List<String> recipes) Adds a database configuration recipe to the given list based on the features present in the GeneratorContext.
-
Constructor Details
-
DataDriverConfiguration
public DataDriverConfiguration()
-
-
Method Details
-
addDatabaseConfigRecipe
Adds a database configuration recipe to the given list based on the features present in the GeneratorContext. The recipe added corresponds to the database type detected from the features. If no specific database feature is present, it defaults to H2 database configuration.- Parameters:
generatorContext
- the GeneratorContext to check for database featuresrecipes
- the list to which the database configuration recipe will be added
-