AutoMigrationSpec
-
Cmn
interface AutoMigrationSpec
Interface for defining an automatic migration specification for Room databases.
The functions defined in this interface will be called on a background thread from the executor set in Room's builder. It is important to note that the functions are all in a transaction when it is called.
| See also | |
|---|---|
AutoMigration |
Summary
Public functions |
||
|---|---|---|
open suspend Unit |
onPostMigrate(connection: SQLiteConnection)Invoked after the migration is completed. |
Cmn
|
Public functions
onPostMigrate
open suspend fun onPostMigrate(connection: SQLiteConnection): Unit
Invoked after the migration is completed.
| Parameters | |
|---|---|
connection: SQLiteConnection |
The database connection. |