79595511

Date: 2025-04-27 21:23:19
Score: 5
Natty:
Report link

I'm facing the same issue. I tried this script, but it doesn't work I can't access my database after exporting the project in Godot. Please tell me what to do!

 var db
func _ready():
db = SQLite.new()
db.path = "res://DB/data_base_REAL.db"
var db_file_content : PackedByteArray  = FileAccess.get_file_as_bytes("res://DB/data_base_REAL.db")
var file : FileAccess = FileAccess.open("user://data_base_REAL.db",FileAccess.WRITE)
file.store_buffer(db_file_content) 
file.close()  
db.open_db()
create_tables()
print("Base de données ouverte avec succès.")
Reasons:
  • RegEx Blacklisted phrase (2.5): Please tell me what
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Low reputation (1):
Posted by: Nesrine