- Home /
Local database on iOS
I've searched and have found alot of stuff about dealing with and connecting to databases on windows and OSX. But the only solutions for databasing that I have found for iOS are to use the www class to interface with a PHP script on a server to fetch from the database. Which sounds good, but I want to interface with a locally stored database in the apps documents folder. I want a list of information that I can manage from an external application. This database ideally would be SQL, or even just a spreadsheet would be suitable. Does anyone know any solution to this? Can I get Unity to connect to a database stored on the iOS device itself?
I'm not sure if this is what you are looking for, but here is a full thread that discusses how to read/write files to/from the iOS documents folder.
The hard part after that is working with the data to and from those files (I have almost 0 exp with SQL :(
)
Answer by cristoph1 · Oct 19, 2011 at 08:43 PM
A really dedicated solution as local data storage for your games is Siaqodb see more info here: http://siaqodb.com/?p=482 •easy to use, very simple API
•works on all platforms: PC, Mac, iOS, Android
•works for all Unity3D editions(not needed Pro edition)
•no SQL knowledge needed
•100% managed code
•small footprint
Just put a siaqodb.dll in your scripts folder and GO!, no extra configuration, no nightmares with unmanaged references
This solution works fine in the editor but it's not working for me on iOS: UnauthorizedAccessException.
Your answer
Follow this Question
Related Questions
php, sql security 3 Answers
Using Unity to connect to a Database 3 Answers
Linq Query - Strange Outcome 1 Answer
Storing unit data for an RPG 5 Answers
Read XLS file with UTF-8 character; 1 Answer