Small changes
The Hall provides an abstraction layer over SQLite to allow database access.
Swift 5 and beyond.
import Hall struct User { var name: String } func main() { do { try SQLite.default.open() try SQLite.default.execute("CREATE TABLE users...") let results = try SQLite.default.fetch("SELECT name,... FROM users") { statement in return User(name: statement[0]) } if let results = results { print(results) } } catch { print(error) } }
MIT
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Hall
The Hall provides an abstraction layer over SQLite to allow database access.
Requirements
Swift 5 and beyond.
Usage
License
MIT