FoundFile

internal data class FoundFile(val fileName: String, val origin: String, val content: String)

A .sql file as it was found, before its name has been read or its checksum taken.

Constructors

Link copied to clipboard
constructor(fileName: String, origin: String, content: String)

Properties

Link copied to clipboard

The text, decoded as UTF-8. Migrations are read as UTF-8 wherever they come from; a file saved in something else arrives with replacement characters in it, and its checksum records them.

Link copied to clipboard

The name on its own, which is the migration's identity.

Link copied to clipboard

Where it was found, which is not - see DiscoveredMigration.origin.