{"id":19749924,"url":"https://github.com/b1naryth1ef/rocksdb","last_synced_at":"2025-06-24T09:34:52.762Z","repository":{"id":142887456,"uuid":"78810220","full_name":"b1naryth1ef/rocksdb","owner":"b1naryth1ef","description":"A D binding for rocksdb","archived":false,"fork":false,"pushed_at":"2018-06-10T23:46:32.000Z","size":23,"stargazers_count":10,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T21:24:36.853Z","etag":null,"topics":["binding","rocksdb"],"latest_commit_sha":null,"homepage":null,"language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b1naryth1ef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-13T03:05:49.000Z","updated_at":"2022-07-18T18:13:53.000Z","dependencies_parsed_at":"2023-03-19T02:02:57.559Z","dependency_job_id":null,"html_url":"https://github.com/b1naryth1ef/rocksdb","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1naryth1ef%2Frocksdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1naryth1ef%2Frocksdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1naryth1ef%2Frocksdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1naryth1ef%2Frocksdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b1naryth1ef","download_url":"https://codeload.github.com/b1naryth1ef/rocksdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241080095,"owners_count":19906220,"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":["binding","rocksdb"],"created_at":"2024-11-12T02:29:24.242Z","updated_at":"2025-02-28T00:44:15.135Z","avatar_url":"https://github.com/b1naryth1ef.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RocksDB D-Lang\n\nA straightforward binding to RocksDB v5.0.1 in D-lang.\n\n## Building\n\nYou need a valid rocksdb library in the root of this project so your linker can find it.  It is recommended to use a recent version of rocksdb, tested with \n\n- facebook-rocksdb-v5.12.4 (https://github.com/facebook/rocksdb/archive/v5.12.4.tar.gz)\n\nNote: Windows rocksdb will work and recommendation is to use vcpkg to build rocks first, and copy your rocksdb-shared.dll into the root of the parent project.\n\n## Testing\n\n\u003e dub test\n\nwill launch a benchmark, and should be enough to convine one of the functionality and performance.\n\n## Example\n\n```D\nauto opts = new DBOptions;\nopts.createIfMissing = true;\nopts.errorIfExists = false;\n\nauto db = new Database(opts, \"testdb\");\n\n// Put a value into the database\ndb.putString(\"key\", \"value\");\n\n// Get a value out\nassert(db.getString(\"key\") == \"value\");\n\nubyte[] key = ['\\x00', '\\x00'];\n// Delete a value\ndb.remove(key);\n\n// Add values in bulk\nauto batch = new WriteBatch;\nfor (int i = 0; i \u003c 1000; i++) {\nbatch.putString(i.to!string, i.to!string);\n}\ndb.write(batch);\n\n// Iterate over the DB\nauto iter = db.iter();\nforeach (key, value; iter) {\ndb.remove(key);\n}\ndestroy(iter);\n\n// Close the database\ndb.close();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1naryth1ef%2Frocksdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb1naryth1ef%2Frocksdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1naryth1ef%2Frocksdb/lists"}