summaryrefslogtreecommitdiffstats
path: root/data_model/dbms.gd
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-08-29 06:32:29 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-08-29 06:32:29 -0400
commit1907c3b9e2223005697fca88abc051c72d67531d (patch)
tree699fba3f1296c2221c97fe1fdfb6548dbdabddb1 /data_model/dbms.gd
parentb32d06e251dd528ddde00e78792f3e0e0e0bcfb3 (diff)
downloadPlanner-master.tar.gz
Planner-master.zip
store database in user spaceHEADmaster
Diffstat (limited to 'data_model/dbms.gd')
-rw-r--r--data_model/dbms.gd3
1 files changed, 2 insertions, 1 deletions
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)