Skip to content

Commit f4047e2

Browse files
authored
Update CloudKit.md (#327)
Fix attachMetadatabase docs
1 parent df7a58f commit f4047e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Sources/SQLiteData/Documentation.docc/Articles

Sources/SQLiteData/Documentation.docc/Articles/CloudKit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ you can use the `prepareDatabase` method on `Configuration` to attach the metada
106106
```swift
107107
func appDatabase() -> any DatabaseWriter {
108108
var configuration = Configuration()
109-
configuration.prepareDatabase = { db in
110-
db.attachMetadatabase()
109+
configuration.prepareDatabase { db in
110+
try db.attachMetadatabase()
111111
112112
}
113113
}

0 commit comments

Comments
 (0)