SqlMigrationRules

internal object SqlMigrationRules

What a .sql migration is allowed to say, checked while the database is still untouched.

Both checks here could be left to the server, and both are worth making early instead. One of them the server would not catch at all.

Functions

Link copied to clipboard
fun readTransactionality(content: String, origin: String): Boolean

Whether content wants a transaction, which is everything except a file that said otherwise.

Link copied to clipboard
fun refuseTransactionControl(content: String, origin: String)

Refuses a script that opens, commits or rolls back a transaction of its own.