{"id":13590096,"url":"https://github.com/robertohuertasm/SQLite4Unity3d","last_synced_at":"2025-04-08T12:32:44.800Z","repository":{"id":21705016,"uuid":"25026453","full_name":"robertohuertasm/SQLite4Unity3d","owner":"robertohuertasm","description":"SQLite made easy for Unity3d","archived":false,"fork":false,"pushed_at":"2019-05-25T09:01:13.000Z","size":137403,"stargazers_count":1319,"open_issues_count":48,"forks_count":272,"subscribers_count":88,"default_branch":"master","last_synced_at":"2025-04-01T16:16:27.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertohuertasm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-10T08:11:07.000Z","updated_at":"2025-03-31T14:07:47.000Z","dependencies_parsed_at":"2022-08-07T10:01:07.539Z","dependency_job_id":null,"html_url":"https://github.com/robertohuertasm/SQLite4Unity3d","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertohuertasm%2FSQLite4Unity3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertohuertasm%2FSQLite4Unity3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertohuertasm%2FSQLite4Unity3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertohuertasm%2FSQLite4Unity3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertohuertasm","download_url":"https://codeload.github.com/robertohuertasm/SQLite4Unity3d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247842971,"owners_count":21005377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T16:00:39.068Z","updated_at":"2025-04-08T12:32:39.783Z","avatar_url":"https://github.com/robertohuertasm.png","language":"C#","readme":"[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/codecoding/SQLite4Unity3d.svg)](http://isitmaintained.com/project/codecoding/SQLite4Unity3d \"Average time to resolve an issue\")\n[![Percentage of issues still open](http://isitmaintained.com/badge/open/codecoding/SQLite4Unity3d.svg)](http://isitmaintained.com/project/codecoding/SQLite4Unity3d \"Percentage of issues still open\")\n\n# What's this?\nWhen I started with Unity3d development I needed to use SQLite in my project and it was very hard to me to find a place with simple instructions on how to make it work. All I got were links to paid solutions on the Unity3d's Assets Store and a lot of different and complicated tutorials.\n\nAt the end, I decided that there should be a simpler way and I created **SQLite4Unity3d**, a plugin that helps you to use SQLite in your Unity3d projects in a clear and easy way and works in **iOS, Mac, Android and Windows** projects.\n\nIt uses the great [sqlite-net](https://github.com/praeclarum/sqlite-net) library as a base so you will have **Linq besides sql**. For a further reference on what possibilities you have available with this library I encourage you to visit [its github repository](https://github.com/praeclarum/sqlite-net). \n\n*Note: _SQLite4Unity3d uses only the synchronous part of sqlite-net, so all the calls to the database are synchronous._\n\nIf you want to know more about why I created this plugin you can read more [here](http://www.codecoding.com/sqlite4unity3d-using-sqlite-net-library-and-unity3d-free-edition/).\n\n# The fast track\nAll you have to do to start using it in your project:\n\n1. [Download this zip](https://github.com/codecoding/SQLite4Unity3d/raw/master/SQLite4Unity3d.zip), extract its content and  **copy the resulting folder to your Assets/Plugins folder**. It contains the dlls that Unity3d will need to access sqlite.\n2. **Copy the SQLite.cs** file into your scripts folder.\n3. Don’t forget to **copy your SQLite database file in your Assets/StreamingAssets folder if you’re shipping one**.\n4. **You’re done!** Now you can get access to your database using sqlite-net.  ;P\n\n# Example\nIf you want to try it I've uploaded a small example that you will be able to find in the \"Example\" folder. Download the folder and open it with Unity3d to give it a try. It contains classes that will help you to start.\n\n## Android particularities\nAndroid configuration and deployment is very straight forward. Take a look at the **following video** if you want to get a picture on how to proceed:\n\n\u003ca href=\"http://www.youtube.com/watch?feature=player_embedded\u0026v=oPEl0mzeYoQ\" target=\"_blank\"\u003e\u003cimg src=\"http://img.youtube.com/vi/oPEl0mzeYoQ/0.jpg\" alt=\"UWP\"  border=\"10\" /\u003e\u003c/a\u003e\n\n# iOS particularities\nAs you may know **iOS doesn't allow JIT compilation** so, generally speaking, you will have to be very careful when you use **reflection** in your code. For a more deeper explanation of this issue please refer to Google but making it short: you cannot create dynamic objects using reflection. How is this affecting SQLite4Unity3d? Well, prior to this version you couldn't use very complicated queries. Now, **for basic queries you will have iOS support**. In case you stumble uppon a JIT compilation error it's time to use the old sql syntax.\n\nCheck this video to know how to proceed with iOS deployment:\n\n\u003ca href=\"http://www.youtube.com/watch?feature=player_embedded\u0026v=a4HXlGbO_2c\" target=\"_blank\"\u003e\u003cimg src=\"http://img.youtube.com/vi/a4HXlGbO_2c/0.jpg\" alt=\"UWP\"  border=\"10\" /\u003e\u003c/a\u003e\n\n# Windows particularities\nIn general you won't find any issues with Android and iOS. For **Windows versions**, please take a look at the **the video below** for more details on how to proceed:\n\n\u003ca href=\"http://www.youtube.com/watch?feature=player_embedded\u0026v=zVXr70fYxoA\" target=\"_blank\"\u003e\u003cimg src=\"http://img.youtube.com/vi/zVXr70fYxoA/0.jpg\" alt=\"UWP\"  border=\"10\" /\u003e\u003c/a\u003e\n\n# Acknowledgements\nThis project is based on the work of:\n\n- [Sqlite-net](https://github.com/praeclarum/sqlite-net) - License: custom - see https://github.com/praeclarum/sqlite-net/blob/master/license.md\n\n\n","funding_links":[],"categories":["C# #"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertohuertasm%2FSQLite4Unity3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertohuertasm%2FSQLite4Unity3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertohuertasm%2FSQLite4Unity3d/lists"}