Skip to content

Commit 0538b3b

Browse files
Async example (#17)
1 parent 90d3b9f commit 0538b3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,16 @@ Returning a model object, having `Model: Codable`
6666
cassandraClient.query("select * from table ...").map { (result: [Model]) in
6767
...
6868
}
69+
70+
let result: [Model] = try await cassandraClient.query("select * from table ...")
6971
```
7072

7173
```swift
7274
session.query("select * from table ...").map { (result: [Model]) in
7375
...
7476
}
77+
78+
let result: [Model] = try await session.query("select * from table ...")
7579
```
7680

7781
Or using free-form transformations on the row

0 commit comments

Comments
 (0)