Swift Dev SQLite LazyPack
Mar 30, 2021
Another option for local database.
First of all, the github data for installing.
// https://github.com/stephencelis/SQLite.swift
// Copyright © 2014–2015 Stephen Celis.
and Demo Project from YouTuber Kilo-Loco.
// https://github.com/Kilo-Loco/SQLite
Second,
import -> make a var typing with “Connection!” (like picture)
var database: Connection!
Notice: that var is the pivot for the access.
Third,
make a table “name” and your columns.
Fourth,
loading the data.
Fifth,
INSERT, UPDATE, DELETE the data.
Sixth,
make data show in the UI.
Finally, check the Log and Screen.
See you.