{"id":21296953,"url":"https://github.com/reddec/bash-db","last_synced_at":"2025-07-11T18:32:08.940Z","repository":{"id":23168487,"uuid":"26524359","full_name":"reddec/bash-db","owner":"reddec","description":"Very simple Key-Value database on bash script","archived":false,"fork":false,"pushed_at":"2023-09-26T01:40:15.000Z","size":6,"stargazers_count":34,"open_issues_count":2,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-02T11:01:56.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/reddec.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":"2014-11-12T07:28:07.000Z","updated_at":"2025-04-29T22:50:02.000Z","dependencies_parsed_at":"2024-11-28T04:45:35.917Z","dependency_job_id":null,"html_url":"https://github.com/reddec/bash-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reddec/bash-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fbash-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fbash-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fbash-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fbash-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reddec","download_url":"https://codeload.github.com/reddec/bash-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fbash-db/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264870453,"owners_count":23676234,"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-11-21T14:31:17.805Z","updated_at":"2025-07-11T18:32:08.682Z","avatar_url":"https://github.com/reddec.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"bash-db\n=======\n\nVery simple Key-Value database on bash script. Depends on pre-installed software only (tested on Ubuntu 14.04 LTS):\n* sed\n* bash\n* grep\n* base64\n* xargs\n\nInstall\n=======\n\n### bpkg (global package)\n```bash\nbpkg install reddec/bash-db\n```\n\n### Make (/usr/local/bin) \n```bash\nmake install\n``` \n\n### Manual Installation \n```bash\ngit clone https://github.com/reddec/bash-db\ncd bash-db\nchmod +x db.sh\ncp db.sh /usr/local/bin/db\n```\n\nUsage\n=======\n\n### Command-line Tool\n`db \u003cmethod\u003e \u003cdatabase\u003e [arguments...]`\n\nMethods:\n\n### PUT\n\nInsert or update record.\n\n| Arg               | Description  |\n|-------------------| -------------|\n| `key` (required)  | Unique key. Can be used any value (also spaces if value in bracets)\n| `value` (optional)| Value of record.  Can be used any value (also spaces if value in bracets). If value not set, STDIN will be used.\n\n#### Example:\n\n```bash\ndb put test.db name 'Red Dec'\n```\n\n### GET\n\nGet value of record by key\n\n| Arg               | Description  |\n|-------------------| -------------|\n| `key` (required)  | Unique key. Can be used any value (also spaces if value in bracets)\n\n#### Example:\n\n```bash\ndb get test.db name\n```\n\n### LIST\n\nGet all keys in database\n\n**No arguments**\n\n#### Example:\n\n```bash\ndb list test.db\n```\n\n### LAST\n\nGet the value of the last added record\n\n**No arguments**\n\n#### Example:\n\n```bash\ndb last test.db\n```\n\n### DELETE\n\nDelete record by key\n\n| Arg               | Description  |\n|-------------------| -------------|\n| `key` (required)  | Unique key. Can be used any value (also spaces if value in bracets)\n\n#### Example:\n\n```bash\ndb delete test.db name\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fbash-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freddec%2Fbash-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fbash-db/lists"}