{"id":26587686,"url":"https://github.com/dnutiu/grocksdb","last_synced_at":"2026-05-04T04:34:38.847Z","repository":{"id":282879613,"uuid":"947979788","full_name":"dnutiu/grocksdb","owner":"dnutiu","description":"RocksDB wrapper for Go. Support 9.x, 8.x, 7.x, 6.x, etc","archived":false,"fork":false,"pushed_at":"2025-03-13T14:54:43.000Z","size":143389,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-18T09:53:41.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"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/dnutiu.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":"2025-03-13T14:53:27.000Z","updated_at":"2025-03-13T14:55:38.000Z","dependencies_parsed_at":"2025-03-17T13:08:17.834Z","dependency_job_id":"fbe699c0-49bd-4a25-aaf2-3df8c721f2ea","html_url":"https://github.com/dnutiu/grocksdb","commit_stats":null,"previous_names":["dnutiu/grocksdb"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dnutiu/grocksdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnutiu%2Fgrocksdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnutiu%2Fgrocksdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnutiu%2Fgrocksdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnutiu%2Fgrocksdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnutiu","download_url":"https://codeload.github.com/dnutiu/grocksdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnutiu%2Fgrocksdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32595198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-03-23T12:29:45.014Z","updated_at":"2026-05-04T04:34:38.806Z","avatar_url":"https://github.com/dnutiu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# grocksdb, RocksDB wrapper for Go\n\n[![](https://github.com/linxGnu/grocksdb/workflows/CI/badge.svg)]()\n[![Go Report Card](https://goreportcard.com/badge/github.com/linxGnu/grocksdb)](https://goreportcard.com/report/github.com/linxGnu/grocksdb)\n[![Coverage Status](https://coveralls.io/repos/github/linxGnu/grocksdb/badge.svg?branch=master)](https://coveralls.io/github/linxGnu/grocksdb?branch=master)\n[![godoc](https://img.shields.io/badge/docs-GoDoc-green.svg)](https://godoc.org/github.com/linxGnu/grocksdb)\n\nThis is a `Fork` from [tecbot/gorocksdb](https://github.com/tecbot/gorocksdb). I respect the author work and community contribution.\nThe `LICENSE` still remains as upstream.\n\nWhy I made a patched clone instead of PR:\n- Supports almost C API (unlike upstream). Catching up with latest version of Rocksdb as promise.\n- This fork contains `no defer` in codebase (my side project requires as less overhead as possible). This introduces loose\nconvention of how/when to free c-mem, thus break the rule of [tecbot/gorocksdb](https://github.com/tecbot/gorocksdb).\n\n## Install\n\n### Prerequisite \n\n- librocksdb\n- libsnappy\n- libz\n- liblz4\n- libzstd\n- libbz2 (optional)\n\nPlease follow this guide: https://github.com/facebook/rocksdb/blob/master/INSTALL.md to build above libs.\n\n### Build \n\nAfter installing both `rocksdb` and `grocksdb`, you can build your app using the following commands:\n\n```bash\nCGO_CFLAGS=\"-I/path/to/rocksdb/include\" \\\nCGO_LDFLAGS=\"-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lsnappy -llz4 -lzstd\" \\\n  go build\n```\n\nOr just:\n```bash\ngo build // if prerequisites are in linker paths\n```\n\nIf your rocksdb was linked with bz2:\n```bash\nCGO_LDFLAGS=\"-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lsnappy -llz4 -lzstd -lbz2\" \\\n  go build\n```\n\n#### Customize the build flags\nCurrently, the default build flags without specifying `CGO_LDFLAGS` or the corresponding environment variables are `-lrocksdb -pthread -lstdc++ -ldl -lm -lzstd -llz4 -lz -lsnappy`\n\nIf you want to customize the build flags:\n\n1. Use `-tags grocksdb_clean_link` to create a cleaner set of flags and build it based on the cleaner flag. The base build flags after using the tag are `-lrocksdb -pthread -lstdc++ -ldl`.\n```bash\nCGO_LDFLAGS=\"-L/path/to/rocksdb -lzstd\" go build -tags grocksdb_clean_link\n```\n2. Use `-tags grocksdb_no_link` to ignore the build flags provided by the library and build it fully based on the custom flags.\n```bash\nCGO_LDFLAGS=\"-L/path/to/rocksdb -lrocksdb -lstdc++ -lzstd -llz4\" go build -tags grocksdb_clean_link\n```\n\n## Usage\n\nSee also: [doc](https://godoc.org/github.com/linxGnu/grocksdb)\n\n## API Support\n\nAlmost C API, excepts:\n- [ ] get_db_identity\n- [ ] putv/mergev/deletev/delete_rangev\n- [ ] compaction_filter/compaction_filter_factory/compaction_filter_context\n- [ ] transactiondb_property_value/transactiondb_property_int\n- [ ] optimistictransactiondb_property_value/optimistictransactiondb_property_int\n- [ ] writebatch_update_timestamps/writebatch_wi_update_timestamps/writebatch_iterate_cf\n- [ ] approximate_sizes_cf_with_flags\n- [ ] logger_create_callback_logger\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnutiu%2Fgrocksdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnutiu%2Fgrocksdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnutiu%2Fgrocksdb/lists"}