Skip to content

Add file blobs - #551

Merged
gabriel-samfira merged 4 commits into
cloudbase:mainfrom
gabriel-samfira:add-file-blobs
Oct 7, 2025
Merged

Add file blobs#551
gabriel-samfira merged 4 commits into
cloudbase:mainfrom
gabriel-samfira:add-file-blobs

Conversation

@gabriel-samfira

@gabriel-samfira gabriel-samfira commented Oct 7, 2025

Copy link
Copy Markdown
Member

This change adds the database models needed to store files in the sqlite3 database. Using the DB for a few small files (<80 MB) should be fine.

We can use this as a backend for a simple object storage within GARM to distribute binaries we need. This is especially useful in air gaped systems.

Note: this uses a fork of mattn/go-sqlite3. When/If the PR that adds blob I/O is merged, we can switch back to upstream.

This commit adds the DB models and functions needed to create, read,
search through, update and delete files within sqlite3.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
@gabriel-samfira
gabriel-samfira merged commit f66f95b into cloudbase:main Oct 7, 2025
4 checks passed
@gabriel-samfira
gabriel-samfira deleted the add-file-blobs branch October 7, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant