{"id":13640938,"url":"https://github.com/zio/zio-rocksdb","last_synced_at":"2025-04-25T23:31:29.227Z","repository":{"id":36910605,"uuid":"230615277","full_name":"zio/zio-rocksdb","owner":"zio","description":"A ZIO-based interface to RocksDB.","archived":false,"fork":false,"pushed_at":"2024-11-18T15:56:13.000Z","size":107,"stargazers_count":32,"open_issues_count":3,"forks_count":17,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-04T05:11:21.510Z","etag":null,"topics":["rocksdb","scala","zio"],"latest_commit_sha":null,"homepage":"https://zio.dev/zio-rocksdb","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zio.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-28T13:42:55.000Z","updated_at":"2024-11-18T15:56:17.000Z","dependencies_parsed_at":"2024-05-20T21:15:58.521Z","dependency_job_id":"3b07c113-7af6-4b50-b8bc-67f0ad181e74","html_url":"https://github.com/zio/zio-rocksdb","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio%2Fzio-rocksdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio%2Fzio-rocksdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio%2Fzio-rocksdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio%2Fzio-rocksdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zio","download_url":"https://codeload.github.com/zio/zio-rocksdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250912660,"owners_count":21506865,"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":["rocksdb","scala","zio"],"created_at":"2024-08-02T01:01:16.025Z","updated_at":"2025-04-25T23:31:28.849Z","avatar_url":"https://github.com/zio.png","language":"Scala","funding_links":[],"categories":["NoSQL"],"sub_categories":[],"readme":"[![Project stage][Stage]][Stage-Page]\n[![Release Artifacts][Badge-SonatypeReleases]][Link-SonatypeReleases]\n\n# zio-rocksdb\n\nA ZIO-based interface to RocksDB.\n\n## Installation\n\nAdd the following dependencies to your `build.sbt` file:\n```scala\nlibraryDependencies ++= Seq(\n  \"dev.zio\" %% \"zio-rocksdb\" % \"\u003cversion\u003e\"\n)\n```\n\n## Using RocksDB\nUse the provided `RocksDB` wrapper:\n```scala\nimport java.nio.charset.StandardCharsets\n\nimport zio.rocksdb\nimport zio.rocksdb.{ RocksDB }\n\nval UTF_8 = StandardCharsets.UTF_8\nval key   = \"key\".getBytes(UTF_8)\nval value = \"value\".getBytes(UTF_8)\n\nval database  = RocksDB.live(\"/data/state\")\nval readWrite = RocksDB.put(key, value) *\u003e RocksDB.get(key)\nval result    = readWrite.provideCustomLayer(database)\n```\n\n## Using TransactionDB\n`zio-rocksdb` provides transactional capabilities using RocksDB [Transaction API].\n\n```scala\nimport java.nio.charset.StandardCharsets\n\nimport zio.rocksdb\nimport zio.rocksdb.{ TransactionDB, Transaction }\n\nval key0   = \"key0\".getBytes(UTF_8)\nval key1   = \"key1\".getBytes(UTF_8)\nval value0 = \"value0\".getBytes(UTF_8)\nval value1 = \"value1\".getBytes(UTF_8)\n\nval database      = TransactionDB.live(\"/data/state\")\nval write0        = Transaction.put(key0, value0)\nval write1        = Transaction.put(key1, value1)\nval writeTogether = TransactionDB.atomically {\n  write0 \u003c\u0026\u003e write1\n}\nval result        = readWrite.provideCustomLayer(database)\n```\n\n[Transaction API]: https://github.com/facebook/rocksdb/wiki/Transactions#transactiondb\n\n## Getting help\n\nJoin us on the [ZIO Discord server](https://discord.gg/2ccFBr4).\n\n## Legal\n\nCopyright 2019 Itamar Ravid and the zio-rocksdb contributors. All rights reserved.\n\n[Link-SonatypeReleases]: https://oss.sonatype.org/content/repositories/releases/dev/zio/zio-rocksdb_2.12/ \"Sonatype Releases\"\n[Badge-SonatypeReleases]: https://img.shields.io/nexus/r/https/oss.sonatype.org/dev.zio/zio-rocksdb_2.12.svg \"Sonatype Releases\"\n[Stage]: https://img.shields.io/badge/Project%20Stage-Development-yellowgreen.svg\n[Stage-Page]: https://github.com/zio/zio/wiki/Project-Stages\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzio%2Fzio-rocksdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzio%2Fzio-rocksdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzio%2Fzio-rocksdb/lists"}