Configuration Reference

Version:5.0.0-SNAPSHOT

Micronaut Data Azure Cosmos Config Properties

🔗
Table 1. Configuration Properties for CosmosDatabaseConfiguration
Property Type Description Default value

azure.cosmos.database.database-name

java.lang.String

Sets the database name.

azure.cosmos.database.update-policy

StorageUpdatePolicy

Sets the update policy for the database to be used during startup.

azure.cosmos.database.packages

java.util.List

the list of package names to filter entities during init database and containers

azure.cosmos.database.query-metrics-enabled

boolean

Sets the indicator telling whether query metrics will be enabled for Azure Cosmos Db query requests.

azure.cosmos.database.disable-non-streaming-order-by

boolean

Sets an indicator telling whether non-streaming order by is by default disabled.

🔗
Table 2. Configuration Properties for CosmosDatabaseConfiguration$CosmosContainerSettings
Property Type Description Default value

azure.cosmos.database.container-settings[*].container-name

java.lang.String

Sets the container name.

azure.cosmos.database.container-settings[*].partition-key-path

java.lang.String

Sets the container partition key path.

🔗
Table 3. Configuration Properties for CosmosDatabaseConfiguration$CosmosContainerSettings$ContainerThroughputSettings
Property Type Description Default value

azure.cosmos.database.container-settings[*].throughput-settings.request-units

java.lang.Integer

Sets the request units.

azure.cosmos.database.container-settings[*].throughput-settings.auto-scale

boolean

Sets the auto scaled indicator for throughput.

🔗
Table 4. Configuration Properties for CosmosDatabaseConfiguration$DefaultThroughputSettings
Property Type Description Default value

azure.cosmos.database.throughput-settings.request-units

java.lang.Integer

Sets the request units.

azure.cosmos.database.throughput-settings.auto-scale

boolean

Sets the auto scaled indicator for throughput.

Micronaut Data Jdbc Config Properties

🔗
Table 5. Configuration Properties for DataJdbcConfiguration
Property Type Description Default value

datasources.*.schema-generate

SchemaGenerate

Sets the schema generation strategy.

datasources.*.batch-generate

boolean

Whether to generate tables in batch.

datasources.*.packages

java.util.List

Sets the packages to include use for the purposes of schema generation.

datasources.*.dialect

Dialect

Sets the dialect.

datasources.*.allow-connection-per-operation

boolean

If true, {@link javax.sql.DataSource#getConnection()} will be used in try-resource block for the operation.

datasources.*.schema-generate-name

java.lang.String

The schema name that should be used for generating

datasources.*.schema-generate-names

java.util.List

The schema names that should be used for generating

datasources.*.enabled

boolean

Sets an indicator telling whether data source is enabled.

datasources.*.unique-result-on-find-one

boolean

Fail on multiple results for findOne.

datasources.*.default-fetch-size

java.lang.Integer

Sets the default fetch size for the JDBC driver. The fetch size is a hint to the JDBC driver as to the number of rows that should be fetched from the database when more rows are needed. If set to null, the JDBC driver’s default fetch size will be used. Used in streaming operations.

Micronaut Data Mongodb Config Properties

🔗
Table 6. Configuration Properties for MongoDataConfiguration
Property Type Description Default value

micronaut.data.mongodb.create-collections

boolean

Create MongoDB collection at app initialization.

micronaut.data.mongodb.ignore-json-views

boolean

Ignore any JsonView annotations on the properties of mapped entity during encode and decode operations.

micronaut.data.mongodb.driver-type

MongoDataConfiguration$DriverType

Choose the appropriate driver type when both are on classpath.

Micronaut Data R2dbc Config Properties

🔗
Table 7. Configuration Properties for DataR2dbcConfiguration
Property Type Description Default value

r2dbc.datasources.*.schema-generate

SchemaGenerate

Sets the schema generation strategy.

r2dbc.datasources.*.batch-generate

boolean

Whether to generate tables in batch.

r2dbc.datasources.*.packages

java.util.List

Sets the packages to include use for the purposes of schema generation.

r2dbc.datasources.*.dialect

Dialect

Sets the dialect.

r2dbc.datasources.*.schema-generate-name

java.lang.String

The schema name that should be used for generating

r2dbc.datasources.*.schema-generate-names

java.util.List

The schema names that should be used for generating

r2dbc.datasources.*.default-fetch-size

java.lang.Integer

Sets the default fetch size for the JDBC driver. The fetch size is a hint to the JDBC driver as to the number of rows that should be fetched from the database when more rows are needed. If set to null, the JDBC driver’s default fetch size will be used. Used in streaming operations.

Micronaut Data Runtime Config Properties

🔗
Table 8. Configuration Properties for MultiTenancyConfiguration
Property Type Description Default value

micronaut.data.multi-tenancy.mode

MultiTenancyMode

Sets the multi-tenancy mode.

🔗
Table 9. Configuration Properties for DataConfiguration$PageableConfiguration
Property Type Description Default value

micronaut.data.pageable.sort-ignore-case

boolean

Whether sort ignores case.

micronaut.data.pageable.sort-delimiter

java.lang.String

The delimiter to use to calculate sort order. Defaults to {@code ,}.

micronaut.data.pageable.max-page-size

int

Sets the maximum page size when binding Pageable objects.

micronaut.data.pageable.default-page-size

int

Sets the default page size when binding Pageable objects and no size parameter is used. Should be smaller or equal than {@link #maxPageSize}.

micronaut.data.pageable.sort-parameter-name

java.lang.String

The default sort parameter name

micronaut.data.pageable.size-parameter-name

java.lang.String

The default size parameter name

micronaut.data.pageable.page-parameter-name

java.lang.String

The default page parameter name