SQLiteUnityKit

Framework to connect with a SQLite database from Unity for iOS, Android, MAC , Windows

Github星跟踪图

#SQLiteUnityKit

Framework to connect to SQLite database from Unity for iOS, Android, MAC and Windows

***** please don't use this code for sell an asset *****

##change log
###v 1.1 changes:

  • Add android support (read below how to do)
  • sqlite libs version for android (v3.3.17) It has been compiled with the android native development kit release 9 and the target arm is ARMv5TE (which should cover most android devices).
  • change all DllImport from internal to private

###How to Use:

SqliteDatabase sqlDB = new SqliteDatabase(“config.db”);
string query = “INSERT INTO User(UserName) VALUES( ‘Santiago’)”;
sqlDB.ExecuteNonQuery(query);

####IMPORTANT:
the file “config.db” is necessary exist in the “StreamingAssets” folder.

If this folder does not exist create it in the root folder of your Unity project.

###to execute a query this libs have 2 simple methods:

void ExecuteNonQuery(string query)  //for SQL query like UPDATE, DELETE....
Dictionary ExecuteQuery(string query)  //for SQL query like SELECT ....

##for Android compatibility:

Copy the file "libsqlite3.so" (sqlite libs for android) into the folder "Assets/Plugins/Android" it's important copy that otherwise it will not be included to the final apk package.

follow this simple steps and you can get full compatibility with android.

credits

####feedback?

主要指标

概览
名称与所有者Busta117/SQLiteUnityKit
主编程语言C#
编程语言C# (语言数: 1)
平台
许可证
所有者活动
创建于2013-03-21 05:58:45
推送于2019-11-29 13:07:59
最后一次提交2014-11-06 03:24:31
发布数0
用户参与
星数304
关注者数28
派生数76
提交数8
已启用问题?
问题数10
打开的问题数7
拉请求数1
打开的拉请求数6
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?