Closed KC-218 closed 2 years ago
Issues are used to track bugs and feature requests. Need help or have a general question? Ask on Stack Overflow (tag sqlite.swift).
My question: I got crash issue about get userVersion. Have any idea to fix it?
public var userVersion: Int32 { get { return Int32(try! scalar("PRAGMA user_version") as! Int64) } //Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: file is not a database (code: 26) set { try! run("PRAGMA user_version = \(newValue)" ) } }
this looks like a local/db issue
My question: I got crash issue about get userVersion. Have any idea to fix it?
Build Information
General guidelines