0 votes

I have a pre-made SQLite database that I want to export inside my APK but I can't see it inside it or in my file system? What am I missing?

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

func _ready():
if OS.get_name() in ["Android"]:
    copy_data_to_user()
    db_name = "user://datastore/database"

Thank you very much!

Godot version 3.3.2
in Engine by (37 points)
edited by

1 Answer

+1 vote
Best answer

The .db is not considered a resource within godot so you have to add the file when exporting to any platform. e.g.: (*.db)

by (37 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.