@@ -6,7 +6,7 @@ sidebarTitle: "Overview"
66<CardGroup cols = { 3 } >
77 <Card title = " Source Code" icon = " github" href = " https://github.com/powersync-ja/powersync-swift/" >
88 Refer to the powersync-swift repo on GitHub.
9- </Card >
9+ </Card >
1010 <Card title = " API Reference (Coming soon)" icon = " book" href = " " >
1111 A full API Reference for this SDK is not yet available. This is planned for the V1 release.
1212 </Card >
@@ -249,10 +249,10 @@ func getList(_ id: String) async throws {
249249 parameters : [id],
250250 mapper : { cursor in
251251 ListContent (
252- id : cursor.getString (name : " id" )! ,
253- name : cursor.getString (name : " name" )! ,
254- createdAt : cursor.getString (name : " created_at" )! ,
255- ownerId : cursor.getString (name : " owner_id" )!
252+ id : try cursor.getString (name : " id" )! ,
253+ name : try cursor.getString (name : " name" )! ,
254+ createdAt : try cursor.getString (name : " created_at" )! ,
255+ ownerId : try cursor.getString (name : " owner_id" )!
256256 )
257257 }
258258 )
@@ -271,10 +271,10 @@ func getLists() async throws {
271271 parameters : [],
272272 mapper : { cursor in
273273 ListContent (
274- id : cursor.getString (name : " id" )! ,
275- name : cursor.getString (name : " name" )! ,
276- createdAt : cursor.getString (name : " created_at" )! ,
277- ownerId : cursor.getString (name : " owner_id" )!
274+ id : try cursor.getString (name : " id" )! ,
275+ name : try cursor.getString (name : " name" )! ,
276+ createdAt : try cursor.getString (name : " created_at" )! ,
277+ ownerId : try cursor.getString (name : " owner_id" )!
278278 )
279279 }
280280 )
@@ -293,10 +293,10 @@ func watchLists(_ callback: @escaping (_ lists: [ListContent]) -> Void ) async {
293293 parameters : [],
294294 mapper : { cursor in
295295 ListContent (
296- id : cursor.getString (name : " id" )! ,
297- name : cursor.getString (name : " name" )! ,
298- createdAt : cursor.getString (name : " created_at" )! ,
299- ownerId : cursor.getString (name : " owner_id" )!
296+ id : try cursor.getString (name : " id" )! ,
297+ name : try cursor.getString (name : " name" )! ,
298+ createdAt : try cursor.getString (name : " created_at" )! ,
299+ ownerId : try cursor.getString (name : " owner_id" )!
300300 )
301301 }
302302 ) {
0 commit comments