{"id":16208002,"url":"https://github.com/coryleach/unitysqlite","last_synced_at":"2025-07-31T23:08:24.159Z","repository":{"id":138391182,"uuid":"223251820","full_name":"coryleach/UnitySQLite","owner":"coryleach","description":"SQLite Package for Unity","archived":false,"fork":false,"pushed_at":"2020-06-13T22:48:36.000Z","size":2722,"stargazers_count":27,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T16:55:40.324Z","etag":null,"topics":["openupm","package","package-manager","sql","sqlite","sqlite3","unity","unity3d","upm"],"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/coryleach.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-21T19:43:57.000Z","updated_at":"2025-02-14T06:49:29.000Z","dependencies_parsed_at":"2023-04-30T11:00:19.049Z","dependency_job_id":null,"html_url":"https://github.com/coryleach/UnitySQLite","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryleach%2FUnitySQLite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryleach%2FUnitySQLite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryleach%2FUnitySQLite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryleach%2FUnitySQLite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coryleach","download_url":"https://codeload.github.com/coryleach/UnitySQLite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244389642,"owners_count":20444976,"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":["openupm","package","package-manager","sql","sqlite","sqlite3","unity","unity3d","upm"],"created_at":"2024-10-10T10:15:03.872Z","updated_at":"2025-03-19T08:30:34.827Z","avatar_url":"https://github.com/coryleach.png","language":"C#","readme":"\u003cp align=\"center\"\u003e\n\u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/coryleach/UnityPackages/master/Documentation/GameframeFace.gif\" /\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eGameframe.SQLite 👋\u003c/h1\u003e\n\n\u003c!-- BADGE-START --\u003e\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/c2a754590edd4f7b92d1252f83708b05)](https://www.codacy.com/manual/coryleach/UnitySQLite?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=coryleach/UnitySQLite\u0026amp;utm_campaign=Badge_Grade)\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/coryleach/UnitySQLite?include_prereleases)\n[![openupm](https://img.shields.io/npm/v/com.gameframe.sceneswitcher?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gameframe.sceneswitcher/)\n![GitHub](https://img.shields.io/github/license/coryleach/UnitySQLite)\n\n[![twitter](https://img.shields.io/twitter/follow/coryleach.svg?style=social)](https://twitter.com/coryleach)\n\u003c!-- BADGE-END --\u003e\n\nSQLite Package\n\n## Quick Package Install\n\n#### Using UnityPackageManager (for Unity 2019.3 or later)\nOpen the package manager window (menu: Window \u003e Package Manager)\u003cbr/\u003e\nSelect \"Add package from git URL...\", fill in the pop-up with the following link:\u003cbr/\u003e\nhttps://github.com/coryleach/UnitySQLite.git#1.0.2\u003cbr/\u003e\n\n#### Using UnityPackageManager (for Unity 2019.1 or later)\n\nFind the manifest.json file in the Packages folder of your project and edit it to look like this:\n```js\n{\n  \"dependencies\": {\n    \"com.gameframe.sqlite\": \"https://github.com/coryleach/UnitySQLite.git#1.0.2\",\n    ...\n  },\n}\n```\n\n\u003c!-- DOC-START --\u003e\n\u003c!-- \nChanges between 'DOC START' and 'DOC END' will not be modified by readme update scripts\n--\u003e\n\n## Usage\n\n```c#\nusing Mono.Data.SqliteClient;\n\n// Create database\nstring path = Application.persistentDataPath + \"/\" + \"My_Test_Database\";\nstring connection = \"URI=file:\" + path;\n\n// Open connection\nIDbConnection dbcon = new SqliteConnection(connection);\ndbcon.Open();\n\n// Create table\nIDbCommand dbcmd;\ndbcmd = dbcon.CreateCommand();\nstring q_createTable = \"CREATE TABLE IF NOT EXISTS my_table (id INTEGER PRIMARY KEY, val INTEGER )\";\n\ndbcmd.CommandText = q_createTable;\ndbcmd.ExecuteReader();\n\n// Insert values in table\nIDbCommand cmnd = dbcon.CreateCommand();\ncmnd.CommandText = \"INSERT INTO my_table (id, val) VALUES (0, 5)\";\ncmnd.ExecuteNonQuery();\n\n// Read and print all values in table\nIDbCommand cmnd_read = dbcon.CreateCommand();\nIDataReader reader;\nstring query =\"SELECT * FROM my_table\";\ncmnd_read.CommandText = query;\nreader = cmnd_read.ExecuteReader();\n\nwhile (reader.Read())\n{\n    Debug.Log(\"id: \" + reader[0].ToString());\n    Debug.Log(\"val: \" + reader[1].ToString());\n}\n\n// Close connection\ndbcon.Close();\n```\n\n\u003c!-- DOC-END --\u003e\n\n## Author\n\n👤 **Cory Leach**\n\n* Twitter: [@coryleach](https://twitter.com/coryleach)\n* Github: [@coryleach](https://github.com/coryleach)\n\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n***\n_This README was generated with ❤️ by [Gameframe.Packages](https://github.com/coryleach/unitypackages)_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryleach%2Funitysqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoryleach%2Funitysqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryleach%2Funitysqlite/lists"}