-
Notifications
You must be signed in to change notification settings - Fork 141
Autocreate Tables
(This feature is available since version 5.1.0
)
The required tables for operation can be created during application startup. This feature is inspired by Hibernate's autocreate feature and provides the following functionality via the configuration properties with the defaults below:
spring.data.dynamodb.entity2ddl.auto = none
spring.data.dynamodb.entity2ddl.gsiProjectionType = ALL
spring.data.dynamodb.entity2ddl.readCapacity = 10
spring.data.dynamodb.entity2ddl.writeCapacity = 1
No action will be performed.
Database creation will be generated on ApplicationContext startup. Please note Creation table defaults details.
Database dropping will be generated on ApplicationContext shutdown.
Database dropping will be generated followed by database creation on ApplicationContext startup.
Please note Creation table defaults details.
Drop the schema and recreate it on ApplicationContext startup. Additionally, drop the schema on ApplicationContext shutdown.
Please note Creation table defaults details.
Validate the database schema structure on ApplicationContext startup. The capacity is not checked at all.
If the table creation is required, the following defaults are applied:
- All required GSIs' use
spring.data.dynamodb.entity2ddl.gsiProjectionType
as the projection - All required GIS's use
spring.data.dynamodb.entity2ddl.readCapacity
/spring.data.dynamodb.entity2ddl.writeCapacity
for the capacity