Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gilzoide/unity-sqlite-asset
Read-only SQLite database assets for Unity with ScriptedImporters for ".sqlite", ".sqlite2" and ".sqlite3" files
https://github.com/gilzoide/unity-sqlite-asset
csv scriptableobject sqlite sqlite-net sqlite3 unity unity3d upm upm-package
Last synced: 3 months ago
JSON representation
Read-only SQLite database assets for Unity with ScriptedImporters for ".sqlite", ".sqlite2" and ".sqlite3" files
- Host: GitHub
- URL: https://github.com/gilzoide/unity-sqlite-asset
- Owner: gilzoide
- License: unlicense
- Created: 2024-01-13T22:58:32.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-29T14:50:00.000Z (10 months ago)
- Last Synced: 2024-09-27T23:23:56.322Z (4 months ago)
- Topics: csv, scriptableobject, sqlite, sqlite-net, sqlite3, unity, unity3d, upm, upm-package
- Language: C#
- Homepage:
- Size: 404 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# SQLite Asset
[![openupm](https://img.shields.io/npm/v/com.gilzoide.sqlite-asset?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gilzoide.sqlite-asset/)Read-only [SQLite](https://sqlite.org/) database assets for Unity.
Automatically imports ".sqlite", ".sqlite2" and ".sqlite3" files as SQLite database assets.
## Features
- [SqliteAsset](Runtime/SqliteAsset.cs): read-only SQLite database Unity assets.
+ Files with the extensions ".sqlite", ".sqlite2" and ".sqlite3" will be imported as SQLite database assets.
+ Use the `CreateConnection()` method for connecting to the database provided by the asset.
Make sure to `Dispose()` of any connections you create.
+ SQLite assets may be loaded from Streaming Assets folder or from memory, depending on the value of their "Streaming Assets Path" property.
+ **Warning**: Android and WebGL platforms don't support loading SQLite databases from Streaming Assets and will always load them in memory.
- `SQLiteConnection.SerializeToAsset` extension method for serializing a database to an instance of `SqliteAsset`.## Dependencies
- [SQLite-net](https://github.com/gilzoide/unity-sqlite-net): library for managing SQLite databases## Optional packages
- [SQLite Asset - CSV](https://github.com/gilzoide/unity-sqlite-asset-csv): easily import ".csv" files as read-only SQLite database assets## How to install
Either:
- Use the [openupm registry](https://openupm.com/) and install this package using the [openupm-cli](https://github.com/openupm/openupm-cli):
```
openupm add com.gilzoide.sqlite-asset
```
- Install using the [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui-giturl.html) with the following URL:
```
https://github.com/gilzoide/unity-sqlite-asset.git#1.0.0-preview2
```
- Clone this repository or download a snapshot of it directly inside your project's `Assets` or `Packages` folder.## Credits
- Database icons from [Solar Icons Set](https://www.figma.com/community/file/1166831539721848736/solar-icons-set), licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)