blob: 0508887eee5cf1f4e7ed5c72ee12efa307067cb2 (
plain) (
tree)
|
|
#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
|