clearlight
clearlight

Reputation: 12625

SQLite API changes proximal to Xcode 6.3 release?

After updating to Xcode 6.3/Swift 1.2 I'm getting these errors. (.NoCase can't be found, and .insert doesn't accept (Setter, Setter).

Did something change in the SQLite swift API?

enter image description here

enter image description here

Upvotes: 0

Views: 67

Answers (1)

stephencelis
stephencelis

Reputation: 4964

SQLite.swift is still young so the API is still a bit in flux as things tighten up. Sorry for the inconvenience!

  1. Collating sequence names have been un-camelcased. See: https://github.com/stephencelis/SQLite.swift/commit/74e80d3eb4b1108b37c2acec3321cf27f5037843

    Upgrade path: .Nocase.

  2. Insert's overload returns an Int64 now. See: https://github.com/stephencelis/SQLite.swift/commit/5380d5b502bd76ea99fe0ec54785f6bacd1cb8c1

    Update path: return Int64? from saveNotes.

Upvotes: 1

Related Questions