EasySQLite is a plugin in unity to use SQLite database. As for developer, it’s really important to save the information in selected path, especially if you’re on mobile application development.
Direct link to Asset Store

Publisher’s Website | Documentation
Proven to run in this platforms :
iOS
Android
Easy to execute queries such us :
Insert
Delete
Updating data
many more…
This has been updated, we improve our Script and Documentation to make it much easier to understand.
And added video tutorial on how to use EasySQLite.
How to use…
- Please install the package “EasySQLite.unitypackage”
- Please make ensure whether these file is placed in the following path on Project.
- EasySQLite/EasySQLiteManager.csPlugins/Android/libsqlite3
- StreamingAssets/(your database file; under StreamingAssets folder)
- Create a Database
- You can easily create and modify database with third party tool.We recommend SQLite Manager add-on for Firefox, requires Firefox browser.
- https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/
-
Attach EasySQLiteManager.cs to GameObject in Scene.
-
Drag also the script where you declared you’re database
Example: DemoEasySQLiteDYnamicController.cs and if you already did, then drag the GameOject on that component.
Please take note: You should declared for initialization EasySQLiteManager public inside your script so that this instruction will be possible.Please refer to our script controller endings.
- Please choose Settings and write Database name in the Inspector of instruction 4;
DebugSetting:
AndroidPathSettings:
iOSPathSettings:
EditorPathSettings:
RefreshSettings:
DatabaseFilename:
Reminder: When you put your database, the extension name should be include.
Example: DemoSQLiteDynamicDB.bytes
.bytes is the extension and this is really important if you want to access the database that you made from instruction 3.
-
Please get the Instance in your code to use SQLite.
-
Please make Model Class that you want to use in database;
- We suggest it will be the same as what you use in the database that you create in instruction 3.
- You can use whether Boolean, String, Short, Int, Long, Double, Float for field.
Note : When using Insert, Delete, and Update put [EasySQLiteManager.PrimaryKey] to key field.
Example:
//Initialize name data inside the database
private class Item
{
[EasySQLiteManager.PrimaryKey]
public int id{ get; set; }
public string name{ get; set; }
public int count{ get; set; }
}
- Then lets call any Method you want.
- About the details please check .Documentation
- Before you call any method, please make sure the table is in the database.
- About making table, you can create dynamically by sql.
Example:
//Create table if the specified database is not yet created
private void CreateTable ()
{
string sql = "CREATE TABLE \"DynamicItem\" " +
"(\"id\" INTEGER PRIMARY KEY NOT NULL, " +
"\"name\" Text," +
"\"count\" INTEGER)";
dynamicDB.ExecuteNonQuery (sql);
}
Additional Information:
In one Scene you initialize multiple EasySQLiteManager to use different setting database.
Operation for this plugin is not guarantee, but we give assistance as much as we can.
If there’s bug please let us know, we will correspond within the range that can be done to improve in the future updates.