Class SchemaGenerator
java.lang.Object
io.micronaut.data.jdbc.config.SchemaGenerator
Schema generator used for testing purposes.
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaGenerator(List<DataJdbcConfiguration> configurations, JdbcSchemaHandler schemaHandler, List<SqlTableMappingValidator> sqlTableMappingValidators, io.micronaut.context.env.Environment environment, List<DefinitionProvider> definitionProviders) Constructors a schema generator for the given configurations. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateOrValidateSchema(io.micronaut.context.BeanLocator beanLocator) Initializes or validates the schema for the configuration.
-
Constructor Details
-
SchemaGenerator
public SchemaGenerator(List<DataJdbcConfiguration> configurations, JdbcSchemaHandler schemaHandler, List<SqlTableMappingValidator> sqlTableMappingValidators, io.micronaut.context.env.Environment environment, List<DefinitionProvider> definitionProviders) Constructors a schema generator for the given configurations.- Parameters:
configurations- The configurationsschemaHandler- The schema handlersqlTableMappingValidators- The list ofSqlTableMappingValidatorinstancesenvironment- The environmentdefinitionProviders- Providers of vendor-specific SQL definitions (columns and indexes) used during schema generation
-
-
Method Details
-
createOrValidateSchema
@PostConstruct public void createOrValidateSchema(io.micronaut.context.BeanLocator beanLocator) Initializes or validates the schema for the configuration.- Parameters:
beanLocator- The bean locator
-