I just playing around with badger and I could find an answer to my question.
Is to possible to embed Badger folder in go app and use it read-only?
I hint would be very nice
I just playing around with badger and I could find an answer to my question.
Is to possible to embed Badger folder in go app and use it read-only?
I hint would be very nice
I think what may be best is to embed the result of db.Backup() (protobuf files) and embed those in a embed.fs, then on startup use db.Load() to load them all into a new db before your app starts.
I don’t think you could tell badger as is to use one of those embed.fs structures as a filesystem.