Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Possible to pack SQLite file? #72

Open
TangMonk opened this issue Aug 3, 2019 · 1 comment
Open

Possible to pack SQLite file? #72

TangMonk opened this issue Aug 3, 2019 · 1 comment
Labels

Comments

@TangMonk
Copy link

TangMonk commented Aug 3, 2019

I have a program that read data from local sqlite db, and show data to users, I wanna to pack all assets include sqlite file to one binary file, this program only execute read operation from sqlite, is it possible to pack sqlite file?

@dmitshur
Copy link
Member

vfsgen can be used to embed arbitrary files, so yes, it's possible to include a sqlite database file.

Note that the http.FileSystem interface implementation that vfsgen produces is a read-only filesystem, so it can't be written to (directly).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants