SQLiteUnityKit

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

  • Owner: Busta117/SQLiteUnityKit
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

#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?

Main metrics

Overview
Name With OwnerBusta117/SQLiteUnityKit
Primary LanguageC#
Program languageC# (Language Count: 1)
Platform
License:
所有者活动
Created At2013-03-20 21:58:45
Pushed At2019-11-29 05:07:59
Last Commit At2014-11-05 14:24:31
Release Count0
用户参与
Stargazers Count304
Watchers Count28
Fork Count76
Commits Count8
Has Issues Enabled
Issues Count10
Issue Open Count7
Pull Requests Count1
Pull Requests Open Count6
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private