Package io.micronaut.data.r2dbc.config
Class DataR2dbcConfiguration
java.lang.Object
io.micronaut.data.r2dbc.config.DataR2dbcConfiguration
- All Implemented Interfaces:
- io.micronaut.core.naming.Named
@EachProperty(value="r2dbc.datasources",
              primary="default")
public class DataR2dbcConfiguration
extends Object
implements io.micronaut.core.naming.Named
Configuration for Schema generation.
- Since:
- 1.0.0
- Author:
- graemerocher
- 
Constructor SummaryConstructorsConstructorDescriptionDataR2dbcConfiguration(String name, io.r2dbc.spi.ConnectionFactory connectionFactory, jakarta.inject.Provider<R2dbcOperations> r2dbcOperations) The configuration.
- 
Method SummaryModifier and TypeMethodDescriptionio.r2dbc.spi.ConnectionFactory@NonNull StringgetName()@Nullable StringbooleanvoidsetBatchGenerate(boolean batchGenerate) voidsetDialect(Dialect dialect) Sets the dialect.voidsetPackages(List<String> packages) Sets the packages to include use for the purposes of schema generation.voidsetSchemaGenerate(SchemaGenerate schemaGenerate) Sets the schema generation strategy.voidsetSchemaGenerateName(@Nullable String schemaGenerateName) voidsetSchemaGenerateNames(@Nullable List<String> schemaGenerateNames) 
- 
Constructor Details- 
DataR2dbcConfigurationpublic DataR2dbcConfiguration(@Parameter String name, @Parameter io.r2dbc.spi.ConnectionFactory connectionFactory, @Parameter jakarta.inject.Provider<R2dbcOperations> r2dbcOperations) The configuration.- Parameters:
- name- The configuration name
- connectionFactory- The connection factory
- r2dbcOperations- The operations
 
 
- 
- 
Method Details- 
getR2dbcOperations- Returns:
- The R2DBC operations.
 
- 
getConnectionFactorypublic io.r2dbc.spi.ConnectionFactory getConnectionFactory()- Returns:
- The connection factory.
 
- 
getSchemaGenerate- Returns:
- The schema generation strategy.
 
- 
setSchemaGenerateSets the schema generation strategy.- Parameters:
- schemaGenerate- The schema generation strategy.
 
- 
isBatchGeneratepublic boolean isBatchGenerate()- Returns:
- Whether to generate tables in batch.
 
- 
setBatchGeneratepublic void setBatchGenerate(boolean batchGenerate) - Parameters:
- batchGenerate- Whether to generate tables in batch.
 
- 
getPackages- Returns:
- The packages to include use for the purposes of schema generation.
 
- 
setPackagesSets the packages to include use for the purposes of schema generation.- Parameters:
- packages- The packages
 
- 
getDialect- Returns:
- The dialect to use.
 
- 
setDialectSets the dialect.- Parameters:
- dialect- The dialect
 
- 
getName- Specified by:
- getNamein interface- io.micronaut.core.naming.Named
 
- 
getSchemaGenerateName- Returns:
- The schema name that should be used for generating
 
- 
setSchemaGenerateName- Parameters:
- schemaGenerateName- The schema name that should be used for generating
 
- 
getSchemaGenerateNames- Returns:
- The schema names that should be used for generating
 
- 
setSchemaGenerateNames- Parameters:
- schemaGenerateNames- The schema names that should be used for generating
 
 
-