From 1907c3b9e2223005697fca88abc051c72d67531d Mon Sep 17 00:00:00 2001 From: dusoleil Date: Mon, 29 Aug 2022 06:32:29 -0400 Subject: store database in user space --- data_model/dbms.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data_model/dbms.gd') diff --git a/data_model/dbms.gd b/data_model/dbms.gd index 43c514d..0508887 100644 --- a/data_model/dbms.gd +++ b/data_model/dbms.gd @@ -2,7 +2,7 @@ extends Node const sqlite = preload("res://addons/godot-sqlite/bin/gdsqlite.gdns") -var db_name = "res://data_model/data.db" +var db_name = "user://data.db" var db func _init(): @@ -10,6 +10,7 @@ func _init(): db.path = db_name #db.verbosity_level = 3 db.open_db() + db_update.update(self) func query(sql, args): db.query_with_bindings(sql,args) -- cgit v1.2.3