openrewrite / openrewrite/rewrite-spring
2.4-2.5: schema.sql and data.sql Files
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 403
- Forks
- 149
- Avg merge
- 2h 33m
- Merged PRs (30d)
- 10
Description
Release Notes
With Spring Boot 2.5.1 and above, the new SQL initialization properties support detection of embedded datasources for JDBC and R2DBC. By default, SQL database initialization is only performed when using an embedded in-memory database. To always initialize a SQL database, irrespective of its type, set spring.sql.init.mode to always. Similarly, to disable initialization, set spring.sql.init.mode to never.
Condition
- JDBC and R2DBC datasource in use
- Database initialization in use (see #296)
Report
Inform user that spring.sql.init.mode is only set for in-memory database and must explicitly set otherwise
Recipe
No Recipe
Requires user
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Spring Boot 2.5 release notes linked in the issue and review the database-initialization work referenced by #296. Determine how the recipe should detect JDBC or R2DBC initialization and report when spring.sql.init.mode must be set explicitly for non-embedded databases. Done means the required user-facing report is produced under the stated conditions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100