Documentation for async DatabaseMigrator.migrate()

This commit is contained in:
Gwendal Roué committed 2021-11-01 10:19:03 +01:00
1 parent 5be27dd90a
commit 640a67257f
1 file changed
+7 -1
+7 -1
View File
@@ -121,7 +121,13 @@ migrator.registerMigration("AddNotNullCheckOnName") { db in
## Asynchronous Migrations
`DatabaseMigrator` provides two ways to migrate a database in an asynchronous way.
`DatabaseMigrator` provides three ways to migrate a database in an asynchronous way.
The async `migrate()` method:
```swift
try await migrator.migrate(dbQueue)
```
The `asyncMigrate(_:completion:)` method: