Skip to content

Commit b3f70c3

Browse files
committed
1 parent a31267a commit b3f70c3

7 files changed

Lines changed: 2016 additions & 631 deletions

File tree

‎Sources/SQLiteData/CloudKit/CloudKit+StructuredQueries.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154

155155
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
156156
extension CKRecordKeyValueSetting {
157-
fileprivate subscript(at key: String) -> Int64 {
157+
package subscript(at key: String) -> Int64 {
158158
get {
159159
self["\(CKRecord.userModificationTimeKey)_\(key)"] as? Int64 ?? -1
160160
}

‎Tests/SQLiteDataTests/CloudKitTests/CloudKitTests.swift‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,47 @@
367367
]
368368
),
369369
[12]: RecordType(
370+
tableName: "posts",
371+
schema: """
372+
CREATE TABLE "posts" (
373+
"id" INT PRIMARY KEY NOT NULL,
374+
"title" TEXT NOT NULL ON CONFLICT REPLACE DEFAULT '',
375+
"body" TEXT,
376+
"isPublished" INTEGER NOT NULL ON CONFLICT REPLACE DEFAULT 0
377+
) STRICT
378+
""",
379+
tableInfo: [
380+
[0]: TableInfo(
381+
defaultValue: nil,
382+
isPrimaryKey: false,
383+
name: "body",
384+
isNotNull: false,
385+
type: "TEXT"
386+
),
387+
[1]: TableInfo(
388+
defaultValue: nil,
389+
isPrimaryKey: true,
390+
name: "id",
391+
isNotNull: true,
392+
type: "INT"
393+
),
394+
[2]: TableInfo(
395+
defaultValue: "0",
396+
isPrimaryKey: false,
397+
name: "isPublished",
398+
isNotNull: true,
399+
type: "INTEGER"
400+
),
401+
[3]: TableInfo(
402+
defaultValue: "\'\'",
403+
isPrimaryKey: false,
404+
name: "title",
405+
isNotNull: true,
406+
type: "TEXT"
407+
)
408+
]
409+
),
410+
[13]: RecordType(
370411
tableName: "scopedModels",
371412
schema: """
372413
CREATE TABLE "scopedModels" (

0 commit comments

Comments
 (0)