Answer the question
In order to leave comments, you need to log in
How to use SQLite database in Swift 4.2?
Good day!
When developing an application in Swift4.2, I encountered the need to use an existing database written in SQLite.
The application is an ordinary line in one of which you enter a value, and in the rest there are data taken from the database.
I was looking for various solutions in order to link, but alas.
1. Using FMDB: due to poor knowledge of the SWIFT language, I could not translate the code from Habr to the version I needed.
2. Using SQLite.swift: the same, something went wrong while writing code and trying to use existing codes.
3. Using CoreData: I haven’t considered it yet, but there is a main question here: can one SQLite table be used in CoreData (so that I don’t have to interrupt all the values)?
Please help me figure it out...
Is there an up-to-date instruction / manual somewhere on how to use the SQLite database in Swift 4.2 (not for Swift 3)?
Answer the question
In order to leave comments, you need to log in
To be honest, if with such an abundance of different materials, you can’t migrate and use the database, then it’s probably better to learn Swift.
In descending order of complexity:
GRDB
SQLite Swift
Core Data
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question