We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 140374a commit 0872647Copy full SHA for 0872647
Documentation/Index.md
@@ -638,6 +638,18 @@ do {
638
}
639
```
640
641
+Multiple rows can be inserted at once by similarily calling `insertMany` with an array of per-row [setters](#setters).
642
+
643
+```swift
644
+do {
645
+ let rowid = try db.run(users.insertMany([mail <- "alice@mac.com"], [email <- "geoff@mac.com"]))
646
+ print("inserted id: \(rowid)")
647
+} catch {
648
+ print("insertion failed: \(error)")
649
+}
650
+```
651
652
653
The [`update`](#updating-rows) and [`delete`](#deleting-rows) functions
654
follow similar patterns.
655
0 commit comments