{"id":21279030,"url":"https://github.com/lostatc/sqlarfs-rs","last_synced_at":"2026-01-06T20:08:38.805Z","repository":{"id":238142075,"uuid":"775783868","full_name":"lostatc/sqlarfs-rs","owner":"lostatc","description":"A file archive format and virtual filesystem backed by a SQLite database","archived":false,"fork":false,"pushed_at":"2024-05-26T09:14:18.000Z","size":405,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-11T12:51:34.330Z","etag":null,"topics":["fuse","fuse-filesystem","sqlar","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/lostatc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2024-03-22T03:08:29.000Z","updated_at":"2024-07-11T12:51:34.330Z","dependencies_parsed_at":"2024-09-06T21:28:51.267Z","dependency_job_id":"18a456e7-ef86-4e7c-818d-e4b2f9b243ef","html_url":"https://github.com/lostatc/sqlarfs-rs","commit_stats":null,"previous_names":["lostatc/sqlarfs-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostatc%2Fsqlarfs-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostatc%2Fsqlarfs-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostatc%2Fsqlarfs-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostatc%2Fsqlarfs-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostatc","download_url":"https://codeload.github.com/lostatc/sqlarfs-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245641442,"owners_count":20648644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["fuse","fuse-filesystem","sqlar","sqlite"],"created_at":"2024-11-21T10:18:23.794Z","updated_at":"2026-01-06T20:08:33.756Z","avatar_url":"https://github.com/lostatc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests Workflow Status (main)](https://img.shields.io/github/actions/workflow/status/lostatc/sqlarfs-rs/test.yaml?branch=main\u0026label=Tests\u0026style=for-the-badge\u0026logo=github)](https://github.com/lostatc/sqlarfs-rs/actions/workflows/test.yaml)\n[![Codecov](https://img.shields.io/codecov/c/github/lostatc/sqlarfs-rs?logo=codecov\u0026style=for-the-badge)](https://app.codecov.io/gh/lostatc/sqlarfs-rs)\n[![Crates.io](https://img.shields.io/crates/v/sqlarfs?logo=rust\u0026style=for-the-badge)](https://crates.io/crates/sqlarfs)\n[![docs.rs](https://img.shields.io/docsrs/sqlarfs?logo=docs.rs\u0026style=for-the-badge)](https://docs.rs/sqlarfs)\n\n# sqlarfs\n\nA file archive format and virtual filesystem backed by a SQLite database.\n\nThis library is a Rust implementation of the\n[sqlar](https://sqlite.org/sqlar.html) format for SQLite archive files.\n\nThis library consists of:\n\n- A Rust API\n- A CLI\n- TODO: A FUSE filesystem\n\n## Rust API\n\nTo add this library to your project:\n\n```shell\ncargo add sqlarfs\n```\n\nSee the [API docs](https://docs.rs/sqlarfs) for documentation and examples.\n\n## CLI\n\n### Installation\n\nTo install the CLI tool, [install\nRust](https://www.rust-lang.org/tools/install) and run:\n\n```shell\ncargo install sqlarfs-cli\n```\n\nThe binary will be installed to `~/.cargo/bin/sqlar`.\n\n### Examples\n\nArchive directory and extract it to a target directory:\n\n```shell\nsqlar create ./src\nsqlar extract -a src.sqlar ~/Desktop\n```\n\nArchive two directories and extract them to the current directory:\n\n```shell\nsqlar create -a files.sqlar ~/Documents ~/Pictures\nsqlar extract -a files.sqlar\n```\n\nExtract a specific file from an archive:\n\n```shell\nsqlar extract -a documents.sqlar -s Documents/report.pdf\n```\n\nAdd a file to an existing archive.\n\n```shell\nsqlar archive -a documents.sqlar ~/Downloads/report.pdf Documents/report.pdf\n```\n\nList all regular files in an archive:\n\n```shell\nsqlar list -a documents.sqlar -t file\n```\n\nList only the immediate children of a specific directory in an archive:\n\n```shell\nsqlar list -a documents.sqlar --children Documents/Reports/\n```\n\nRemove a file from an archive:\n\n```shell\nsqlar remove -a documents.sqlar Documents/report.pdf\n```\n\nThe tool has a shorthand syntax for each command:\n\n```shell\nsqlar c -a files.sqlar ~/Documents ~/Pictures\nsqlar ex -a files.sqlar\nsqlar ls -a files.sqlar\nsqlar rm -a files.sqlar Documents\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostatc%2Fsqlarfs-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostatc%2Fsqlarfs-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostatc%2Fsqlarfs-rs/lists"}