Swift Dev SQLite LazyPack

Mario tsai
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.

INSERT
UPDATE
DELETE

Sixth,

make data show in the UI.

put your database data [Row] into listData
set to your UI

Finally, check the Log and Screen.

See you.

--

--

Mario tsai

Major in physical education. Football referee. And high interest in looking the world through the numbers.