Package app. cash. sqldelight. db
Types
Link copied to clipboard
Represents a block of code block that should be executed during a migration after the migration has finished migrating to afterVersion.
Link copied to clipboard
class OptimisticLockException(message: String?, cause: Throwable? = null) : IllegalStateException
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Represents a SQL statement that has been prepared by a driver to be executed.
Functions
Link copied to clipboard
fun SqlSchema.migrateWithCallbacks( driver: SqlDriver, oldVersion: Int, newVersion: Int, vararg callbacks: AfterVersion)
Content copied to clipboard
Run SqlSchema.migrate normally but execute callbacks during the migration whenever it finished upgrading to a version specified by AfterVersion.afterVersion.
Link copied to clipboard
Run body on the receiver and call Closeable.close before returning or throwing.