{"id":37099327,"url":"https://github.com/jilio/sqlitefs","last_synced_at":"2026-01-14T12:04:09.986Z","repository":{"id":54464041,"uuid":"454868007","full_name":"jilio/sqlitefs","owner":"jilio","description":"sqlite as a filesystem for golang apps","archived":false,"fork":false,"pushed_at":"2025-12-01T13:25:57.000Z","size":6587,"stargazers_count":25,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-03T07:12:29.587Z","etag":null,"topics":["golang","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jilio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-02-02T17:18:40.000Z","updated_at":"2025-11-30T21:26:56.000Z","dependencies_parsed_at":"2024-06-19T17:36:03.034Z","dependency_job_id":"a5f782cb-ec29-4dfa-8e11-ac5b0bcff90a","html_url":"https://github.com/jilio/sqlitefs","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jilio/sqlitefs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jilio%2Fsqlitefs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jilio%2Fsqlitefs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jilio%2Fsqlitefs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jilio%2Fsqlitefs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jilio","download_url":"https://codeload.github.com/jilio/sqlitefs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jilio%2Fsqlitefs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","sqlite"],"created_at":"2026-01-14T12:04:09.388Z","updated_at":"2026-01-14T12:04:09.976Z","avatar_url":"https://github.com/jilio.png","language":"Go","readme":"# SQLiteFS\n\nSQLiteFS is a Go package that implements the `fs.FS` interface using SQLite as a storage backend. This allows you to store and access files directly from a SQLite database, which can be useful for embedded applications, resource-constrained systems, or when you need a unified storage for both files and metadata.\n\n## Features\n\n- Implementation of the `fs.FS` interface\n- File storage in SQLite database\n- Support for concurrent writes through a shared channel\n- Fragmented file storage for efficient handling of large files\n- Automatic MIME type detection for files\n\n## Installation\n\nTo use SQLiteFS in your Go project, run the following command:\n\n```sh\ngo get github.com/jilio/sqlitefs\n```\n\n## Usage\n\nHere's a simple example of how to use SQLiteFS:\n\n```go\npackage main\n\nimport (\n \"database/sql\"\n \"fmt\"\n \"io/fs\"\n \"log\"\n\n \"github.com/jilio/sqlitefs\"\n _ \"modernc.org/sqlite\"\n)\n\nfunc main() {\n // Open a connection to the SQLite database\n db, err := sql.Open(\"sqlite\", \"files.db\")\n if err != nil {\n  log.Fatal(err)\n }\n defer db.Close()\n\n // Create a new instance of SQLiteFS\n sqliteFS, err := sqlitefs.NewSQLiteFS(db)\n if err != nil {\n  log.Fatal(err)\n }\n defer sqliteFS.Close()\n\n // Write a file\n writer := sqliteFS.NewWriter(\"example.txt\")\n _, err = writer.Write([]byte(\"Hello, SQLiteFS!\"))\n if err != nil {\n  log.Fatal(err)\n }\n err = writer.Close()\n if err != nil {\n  log.Fatal(err)\n }\n\n // Read a file\n file, err := sqliteFS.Open(\"example.txt\")\n if err != nil {\n  log.Fatal(err)\n }\n defer file.Close()\n\n content, err := fs.ReadFile(sqliteFS, \"example.txt\")\n if err != nil {\n  log.Fatal(err)\n }\n\n fmt.Printf(\"File content: %s\\n\", content)\n}\n```\n\n## License\n\n[MIT License](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjilio%2Fsqlitefs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjilio%2Fsqlitefs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjilio%2Fsqlitefs/lists"}