Skip to content

Conversation

gabriel-samfira
Copy link
Member

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

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 <[email protected]>
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
@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