Class SchemaGenerator

java.lang.Object
io.micronaut.data.jdbc.config.SchemaGenerator

@Context @Internal public class SchemaGenerator extends Object
Schema generator used for testing purposes.
  • Constructor Details

    • SchemaGenerator

      public SchemaGenerator(List<DataJdbcConfiguration> configurations, JdbcSchemaHandler schemaHandler, List<SqlTableMappingValidator> sqlTableMappingValidators, io.micronaut.context.env.Environment environment)
      Constructors a schema generator for the given configurations.
      Parameters:
      configurations - The configurations
      schemaHandler - The schema handler
      sqlTableMappingValidators - The list of SqlTableMappingValidator instances
      environment - The environment
  • 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