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"]:
    db_name = "user://datastore/database"

Thank you very much!

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

1 Answer

0 votes
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 (35 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 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 webmaster@godotengine.org with your username.