{"id":15032764,"url":"https://github.com/ruby/dbm","last_synced_at":"2025-04-06T09:10:37.013Z","repository":{"id":20834316,"uuid":"86650433","full_name":"ruby/dbm","owner":"ruby","description":"Provides a wrapper for the UNIX-style Database Manager Library","archived":false,"fork":false,"pushed_at":"2024-09-10T05:54:42.000Z","size":243,"stargazers_count":17,"open_issues_count":0,"forks_count":11,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-30T08:09:00.844Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2017-03-30T02:33:34.000Z","updated_at":"2025-02-08T07:55:24.000Z","dependencies_parsed_at":"2024-05-05T17:26:09.281Z","dependency_job_id":"33e653e9-c8f8-41c9-9725-2d11e259fbe3","html_url":"https://github.com/ruby/dbm","commit_stats":{"total_commits":236,"total_committers":27,"mean_commits":8.74074074074074,"dds":0.6991525423728814,"last_synced_commit":"8c4bce5038b7dd1b4123263df4cf83d243d84405"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fdbm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fdbm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fdbm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fdbm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/dbm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457803,"owners_count":20941906,"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":["ruby"],"created_at":"2024-09-24T20:19:24.076Z","updated_at":"2025-04-06T09:10:36.997Z","avatar_url":"https://github.com/ruby.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DBM\n\nThe DBM class provides a wrapper to a Unix-style [dbm](http://en.wikipedia.org/wiki/Dbm) or Database Manager library.\n\nDbm databases do not have tables or columns; they are simple key-value data stores, like a Ruby Hash except not resident in RAM. Keys and values must be strings.\n\nThe exact library used depends on how Ruby was compiled. It could be any of the following:\n\n* The original ndbm library is released in 4.3BSD. It is based on dbm library in Unix Version 7 but has different API to support multiple databases in a process.\n* [Berkeley DB](http://en.wikipedia.org/wiki/Berkeley_DB) versions 1 thru 5, also known as BDB and Sleepycat DB, now owned by Oracle Corporation.\n* Berkeley DB 1.x, still found in 4.4BSD derivatives (FreeBSD, OpenBSD, etc).\n* [gdbm](http://www.gnu.org/software/gdbm/), the GNU implementation of dbm.\n* [qdbm](http://fallabs.com/qdbm/index.html), another open source reimplementation of dbm.\n\nAll of these dbm implementations have their own Ruby interfaces available, which provide richer (but varying) APIs.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dbm'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dbm\n\n## Usage\n\n```ruby\nrequire 'dbm'\ndb = DBM.open('rfcs', 0666, DBM::WRCREAT)\ndb['822'] = 'Standard for the Format of ARPA Internet Text Messages'\ndb['1123'] = 'Requirements for Internet Hosts - Application and Support'\ndb['3068'] = 'An Anycast Prefix for 6to4 Relay Routers'\nputs db['822']\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/dbm.\n\n## License\n\nThe gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fdbm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fdbm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fdbm/lists"}