summaryrefslogtreecommitdiffstats
path: root/data_model/dbms.gd
blob: 43c514d805dcf4704a73984634adfa4338c7f015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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