Package io.micronaut.data.jdbc.config
Class SchemaGenerator
java.lang.Object
io.micronaut.data.jdbc.config.SchemaGenerator
Schema generator used for testing purposes.
-
Constructor Summary
ConstructorDescriptionSchemaGenerator
(List<DataJdbcConfiguration> configurations, JdbcSchemaHandler schemaHandler, io.micronaut.context.env.Environment environment) Constructors a schema generator for the given configurations. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createSchema
(io.micronaut.context.BeanLocator beanLocator) Initialize the schema for the configuration.
-
Constructor Details
-
SchemaGenerator
public SchemaGenerator(List<DataJdbcConfiguration> configurations, JdbcSchemaHandler schemaHandler, io.micronaut.context.env.Environment environment) Constructors a schema generator for the given configurations.- Parameters:
configurations
- The configurationsschemaHandler
- The schema handlerenvironment
- The environment
-
-
Method Details
-
createSchema
@PostConstruct public void createSchema(io.micronaut.context.BeanLocator beanLocator) Initialize the schema for the configuration.- Parameters:
beanLocator
- The bean locator
-