From 640a67257f6119cd47539ce9202ffcc7f2c0cb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 1 Nov 2021 10:19:03 +0100 Subject: [PATCH] Documentation for async DatabaseMigrator.migrate() --- Documentation/Migrations.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/Migrations.md b/Documentation/Migrations.md index aca5bf756..ed9f2d579 100644 --- a/Documentation/Migrations.md +++ b/Documentation/Migrations.md @@ -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: