stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.59k stars 1.55k forks source link

Force Cast Violation alert as you are using try! without catch. Can you correct it. #1020

Closed shraddhachoubey closed 2 years ago

shraddhachoubey commented 3 years ago

public var userVersion: Int32 { get { return Int32(try! scalar("PRAGMA user_version") as! Int64)} set { try! run("PRAGMA user_version = (newValue)") } }

nathanfallet commented 2 years ago

Duplicate of #1054