Skip to content
/ gddb Public

GDDB is a superfast in-memory database designed for use in Godot

License

Notifications You must be signed in to change notification settings

patchfx/gddb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDDB

crates.io Cross-compile Documentation Version License

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.

Installation

Example

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)

About

GDDB is a superfast in-memory database designed for use in Godot

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages