| Crates.io | gddb |
| lib.rs | gddb |
| version | 0.3.1 |
| created_at | 2021-10-06 17:00:23.471219+00 |
| updated_at | 2022-03-20 18:39:48.474941+00 |
| description | GDDB is a superfast in-memory database designed for use in Godot. |
| homepage | |
| repository | https://github.com/patchfx/gddb |
| max_upload_size | |
| id | 461276 |
| size | 29,128 |
GDDB is a superfast in-memory database designed for use in Godot.
This database aims to provide an easy frontend to an efficient in-memory database, that can be saved and reloaded.
GDDB saves a Godot dictionary and provides an interface to create, update, retrieve (either single results or all items matching the search) and destroy records.
GDDB started as a fork of TinyDB with added functionality and a Godot wrapper.
extends Node
func _ready():
var data = { "name": "Joe Bloggs" }
var player_uuid = Database.create("Player", data)
print(player_uuid)
var record = Database.find(player_uuid)
print(record.name)
record.name = "John Doe"
Database.update(record.uuid, record.model, record.attributes)
var updated = Database.find(player_uuid)
print(updated.name)