summaryrefslogblamecommitdiffstats
path: root/data_model/dbms.gd
blob: 0508887eee5cf1f4e7ed5c72ee12efa307067cb2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12



                                                                     
                              






                           
                          



                                    
#class_name DBMS
extends Node

const sqlite = preload("res://addons/godot-sqlite/bin/gdsqlite.gdns")
var db_name = "user://data.db"
var db

func _init():
    db = sqlite.new()
    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)
    return db.query_result