SqlSources

internal object SqlSources

The two places .sql migrations come from, behind one call: ClassGraph for the classpath, where a path can be a jar inside a jar or a Spring Boot fat jar, and Files.walk for a directory, which has to be able to say it is not there.

Properties

Link copied to clipboard
const val SUFFIX: String

What a migration file is called. Fixed, like the V, R and __ of the naming rule.

Functions

Link copied to clipboard
fun findAll(locations: List<String>, classLoader: ClassLoader?): List<FoundFile>

Every migration file in locations, in no particular order - ordering is decided later, by version.