Git Product home page Git Product logo

sqliteunitykit's Introduction

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

sqliteunitykit's People

Contributors

busta117 avatar ua2004 avatar

Watchers

James Cloos avatar xinfushe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.