{"id":15372991,"url":"https://github.com/vi/sledtool","last_synced_at":"2025-04-15T11:32:07.925Z","repository":{"id":57667627,"uuid":"328270461","full_name":"vi/sledtool","owner":"vi","description":"CLI tool to work with Sled key-value databases.","archived":false,"fork":false,"pushed_at":"2023-03-30T06:54:30.000Z","size":32,"stargazers_count":40,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T21:02:52.169Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vi.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}},"created_at":"2021-01-10T00:05:26.000Z","updated_at":"2025-03-03T21:50:34.000Z","dependencies_parsed_at":"2024-10-16T13:00:45.768Z","dependency_job_id":null,"html_url":"https://github.com/vi/sledtool","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.04761904761904767,"last_synced_commit":"cab28f9dc7283abcac70c3af659dcb8c3a116bd8"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fsledtool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fsledtool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fsledtool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fsledtool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/sledtool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249061091,"owners_count":21206450,"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":[],"created_at":"2024-10-01T13:53:53.524Z","updated_at":"2025-04-15T11:32:07.637Z","avatar_url":"https://github.com/vi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sledtool\nCLI tool to work with [Sled](https://github.com/spacejam/sled) key-value databases.\n\nIt may be used for making migrations between Sled versions or different compression settings.\n\n```\nUsage: sledtool \u003cdbpath\u003e [-c] [-C \u003ccompression-factor\u003e] [-N] [-F] [-L] \u003ccommand\u003e [\u003cargs\u003e]\n\nCLI tool to work with Sled databases\n\nOptions:\n  -c, --compress    set `use_compression` in `sled::Config` to true\n  -C, --compression-factor\n                    set `compression_factor` in `sled::Config` to specified\n                    value\n  -N, --create-new  set `create_new` in `sled::Config` to true, making it a\n                    failure to open existing database\n  -F, --throughput-mode\n                    set `mode` in `sled::Config` to HighThroughput\n  -L, --low-space   set `mode` in `sled::Config` to LowSpace\n  --help            display usage information\n\nCommands:\n  export            Outout entire content of the database to JSON with\n                    hex-encoded buffers\n  import            Import entire content of the database from JSON with\n                    hex-encoded buffers\n  get               Get value of specific key (or first/last) from the database\n  set               Set value of specific key in the database\n  rm                Remove specific key or range of keys\n  nop               No operation, just open and close the database\n  idle              Open Sled database, then wait indefinitely\n  treenames         List tree names\n  genid             Generate monotonic ID\n  checksum          Call `checksum` and output the result\n  sizeondisk        Call `size_on_disk` and output the result\n\n```\n\n```\n$ sledtool \u003cdbname\u003e get --help\nUsage: sledtool get \u003ckey\u003e [-t \u003ctree\u003e] [-r] [-R] [-T] [--gt] [--lt] [-K] [-q] [-f] [-l]\n\nGet value of specific key (or first/last) from the database\n\nOptions:\n  -t, --tree        tree to use\n  -r, --raw-value   inhibit hex-encoding the value\n  -R, --raw-key     inhibit hex-decoding or hex-encoding the key\n  -T, --raw-tree-name\n                    inhibit hex-decoding the tree name\n  --gt              use `get_gt` instead of `get`\n  --lt              use `get_lt` instead of `get`\n  -K, --print-key   print key in addition to the value, with `=` sign in between\n  -q, --quiet       do not print `Not found` to console, just set exit code 1\n  -f, --first       ignore key, get first record instead\n  -l, --last        ignore key, get last record instead\n  --help            display usage information\n```\n\n```\n$ sledtool /path/to/db export\n{\n \"5f5f736c65645f5f64656661756c74\":{\n  \"71717132\": \"71776572747961736466\"\n }\n}\n```\n\n# See also\n\n* [sledviewer](https://gitlab.com/timokoesters/sledviewer) - GUI tool\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fsledtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Fsledtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fsledtool/lists"}