{"id":13664590,"url":"https://github.com/rizasif/sqlite-unity-plugin","last_synced_at":"2026-02-04T16:27:20.684Z","repository":{"id":50414330,"uuid":"79554837","full_name":"rizasif/sqlite-unity-plugin","owner":"rizasif","description":"SQLite plugin for Unity3D Android and iOS build","archived":false,"fork":false,"pushed_at":"2021-03-04T15:55:24.000Z","size":1762,"stargazers_count":191,"open_issues_count":6,"forks_count":36,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-08-03T05:22:20.621Z","etag":null,"topics":["android","database","ios","sqlite","unity"],"latest_commit_sha":null,"homepage":"","language":null,"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/rizasif.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-20T11:48:41.000Z","updated_at":"2024-07-22T04:05:31.000Z","dependencies_parsed_at":"2022-09-24T09:01:39.555Z","dependency_job_id":null,"html_url":"https://github.com/rizasif/sqlite-unity-plugin","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/rizasif%2Fsqlite-unity-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizasif%2Fsqlite-unity-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizasif%2Fsqlite-unity-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizasif%2Fsqlite-unity-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rizasif","download_url":"https://codeload.github.com/rizasif/sqlite-unity-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224022325,"owners_count":17242745,"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":["android","database","ios","sqlite","unity"],"created_at":"2024-08-02T05:03:00.670Z","updated_at":"2026-02-04T16:27:20.654Z","avatar_url":"https://github.com/rizasif.png","language":null,"readme":"# sqlite-unity-plugin\n\nThis plugin can be used to access sqlite database for unity projects in android and iOS devices. \n\nCopy paste the Plugins folder in the Assets folder of your project (or copy paste the contents into your existsing Plugins folder) and follow the points below to access your database in c#.\n\n1) Import the correct namespaces.\n```\nusing UnityEngine;\nusing System.Data;\nusing Mono.Data.Sqlite;\nusing System.IO;\n```\n\n2) Open your database connection; if the database name (My_Database) does not exist it will be created.\n```\nstring connection = \"URI=file:\" + Application.persistentDataPath + \"/\" + \"My_Database\";\nIDbConnection dbcon = new SqliteConnection(connection);\ndbcon.Open();\n```\n3) Finally create a query to access your database.\n```\nIDbCommand dbcmd;\nIDataReader reader;\n\ndbcmd = dbcon.CreateCommand();\nstring q_createTable = \n  \"CREATE TABLE IF NOT EXISTS \" + \"my_table\" + \" (\" +\n  \"id\" + \" INTEGER PRIMARY KEY, \" +\n  \"val\" + \" INTEGER )\";\n  \ndbcmd.CommandText = q_createTable;\nreader = dbcmd.ExecuteReader();\n```\n\n# Sample\nA Unity implementation of this plugin can be found [here](https://github.com/rizasif/sqlite-unity-plugin-example).\n\n# Tutorial\nRead this [artcle on medium](https://medium.com/@rizasif92/sqlite-and-unity-how-to-do-it-right-31991712190) for more details.\n","funding_links":[],"categories":["miscellaneous"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frizasif%2Fsqlite-unity-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frizasif%2Fsqlite-unity-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frizasif%2Fsqlite-unity-plugin/lists"}