Documentation
¶
Overview ¶
vfs-embed example: bundle a SQLite database inside an embed.FS and open it read-only via the vfs sub-package. The DB never has to be unpacked to disk at runtime — useful for CLI tools that ship with seed data.
To run this example you'd typically generate seed.db once at build time; here we stub it out with a fixture created on the fly via a temp file + os.ReadFile so the example compiles standalone.
Click to show internal directories.
Click to hide internal directories.