mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Documentation for async DatabaseMigrator.migrate()
This commit is contained in:
1 parent
5be27dd90a
commit
640a67257f
1 file changed
+7
-1
@@ -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:
|
||||
|
||||
|
||||
Reference in new issue
Block a user