swift format
swift-sqlite
The simplest SQLite wrapper for Swift possible.
let sqlite = try Sqlite(path: "/path/to/db.sqlite") try sqlite.execute( """ CREATE TABLE IF NOT EXISTS "tasks" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, "inserted_at" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, "description" TEXT NOT NULL, "is_complete" BOOLEAN NOT NULL DEFAULT FALSE ); """) try sqlite.run( """ INSERT INTO "tasks" ( "description" ) VALUES ( ? ) """, .text("Write tests for swift-sqlite library.") )
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
swift-sqlite
The simplest SQLite wrapper for Swift possible.
Usage