Swift Dev SQLite LazyPack

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.

--

--

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mario tsai

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