diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-08-26 20:43:03 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-08-26 20:43:03 -0400 |
commit | 6963eb6cb0f7d15c97f44b9ca439be321edb8a8f (patch) | |
tree | 190990c2497d7f0ad8b2cfed87bab53bff496fbf /data_model/dbms.gd | |
parent | 5756a8f8ed23f0af88b9a351fbbde7417ac82c2f (diff) | |
download | Planner-6963eb6cb0f7d15c97f44b9ca439be321edb8a8f.tar.gz Planner-6963eb6cb0f7d15c97f44b9ca439be321edb8a8f.zip |
accidentally wasn't tracking any of the data model objects
Diffstat (limited to 'data_model/dbms.gd')
-rw-r--r-- | data_model/dbms.gd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/data_model/dbms.gd b/data_model/dbms.gd new file mode 100644 index 0000000..43c514d --- /dev/null +++ b/data_model/dbms.gd @@ -0,0 +1,16 @@ +#class_name DBMS +extends Node + +const sqlite = preload("res://addons/godot-sqlite/bin/gdsqlite.gdns") +var db_name = "res://data_model/data.db" +var db + +func _init(): + db = sqlite.new() + db.path = db_name + #db.verbosity_level = 3 + db.open_db() + +func query(sql, args): + db.query_with_bindings(sql,args) + return db.query_result |