- Home /
How to get a database with information in it to be usable in a build
How do I use an sqlite database with information already in it and have it useable in a build? I put the database in streaming assets, but it didn't load up when it built it out.
string path=Application.streamingAssetsPath + "/Databases/";
_sqlDBLocation="URI=file:" + path + dbname + ".db";
Debug.Log ("Location is: " +_sqlDBLocation);
_connection = new SqliteConnection(_sqlDBLocation);
_command = _connection.CreateCommand();
_connection.Open();
Looking at the log, it couldn't load sqlite or libsqlite which is strange because they are in the plugins directory and it works in the editor. Fallback handler could not load library G:/Unity Projects/Multi-Vehicle Car Maintenance-Demo/MVM-PC_Data/Mono/sqlite Fallback handler could not load library G:/Unity Projects/Multi-Vehicle Car Maintenance-Demo/MVM-PC_Data/Mono/.\sqlite There are multiple copies of these lines. SqliteSyntaxException: disk I/O error
Thanks!
Comment