@@ -6,7 +6,7 @@ sidebarTitle: "Overview"
6
6
<CardGroup cols = { 3 } >
7
7
<Card title = " Source Code" icon = " github" href = " https://github.com/powersync-ja/powersync-swift/" >
8
8
Refer to the powersync-swift repo on GitHub.
9
- </Card >
9
+ </Card >
10
10
<Card title = " API Reference (Coming soon)" icon = " book" href = " " >
11
11
A full API Reference for this SDK is not yet available. This is planned for the V1 release.
12
12
</Card >
@@ -249,10 +249,10 @@ func getList(_ id: String) async throws {
249
249
parameters : [id],
250
250
mapper : { cursor in
251
251
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" )!
256
256
)
257
257
}
258
258
)
@@ -271,10 +271,10 @@ func getLists() async throws {
271
271
parameters : [],
272
272
mapper : { cursor in
273
273
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" )!
278
278
)
279
279
}
280
280
)
@@ -293,10 +293,10 @@ func watchLists(_ callback: @escaping (_ lists: [ListContent]) -> Void ) async {
293
293
parameters : [],
294
294
mapper : { cursor in
295
295
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" )!
300
300
)
301
301
}
302
302
) {
0 commit comments