{"id":18087892,"url":"https://github.com/redisgraph/redisgraph-rb","last_synced_at":"2026-03-03T20:04:20.191Z","repository":{"id":32862337,"uuid":"144591565","full_name":"RedisGraph/redisgraph-rb","owner":"RedisGraph","description":"A Ruby client for RedisGraph","archived":false,"fork":false,"pushed_at":"2024-09-05T09:17:15.000Z","size":41,"stargazers_count":28,"open_issues_count":4,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T03:32:05.584Z","etag":null,"topics":["cypher","graph-database","redis","redis-client","redisgraph"],"latest_commit_sha":null,"homepage":"https://redisgraph.io","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedisGraph.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":"2018-08-13T14:31:43.000Z","updated_at":"2025-03-14T10:39:13.000Z","dependencies_parsed_at":"2025-03-29T03:31:24.711Z","dependency_job_id":null,"html_url":"https://github.com/RedisGraph/redisgraph-rb","commit_stats":null,"previous_names":["redislabs/redisgraph-rb"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisGraph%2Fredisgraph-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisGraph%2Fredisgraph-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisGraph%2Fredisgraph-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisGraph%2Fredisgraph-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedisGraph","download_url":"https://codeload.github.com/RedisGraph/redisgraph-rb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248656173,"owners_count":21140653,"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":["cypher","graph-database","redis","redis-client","redisgraph"],"created_at":"2024-10-31T17:09:21.057Z","updated_at":"2026-03-03T20:04:20.128Z","avatar_url":"https://github.com/RedisGraph.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](https://img.shields.io/github/license/RedisGraph/redisgraph-rb.svg)](https://github.com/RedisGraph/redisgraph-rb)\n[![CircleCI](https://circleci.com/gh/RedisGraph/redisgraph-rb/tree/master.svg?style=svg)](https://circleci.com/gh/RedisGraph/redisgraph-rb/tree/master)\n[![GitHub issues](https://img.shields.io/github/release/RedisGraph/redisgraph-rb.svg)](https://github.com/RedisGraph/redisgraph-rb/releases/latest)\n[![Codecov](https://codecov.io/gh/RedisGraph/redisgraph-rb/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisGraph/redisgraph-rb)\n[![Gem Version](https://badge.fury.io/rb/redisgraph.svg)](https://badge.fury.io/rb/redisgraph)\n\n# redisgraph-rb\n[![Forum](https://img.shields.io/badge/Forum-RedisGraph-blue)](https://forum.redislabs.com/c/modules/redisgraph)\n[![Discord](https://img.shields.io/discord/697882427875393627?style=flat-square)](https://discord.gg/gWBRT6P)\n\n`redisgraph-rb` is a Ruby gem client for the [RedisGraph](https://github.com/RedisLabsModules/RedisGraph) module. It relies on `redis-rb` for Redis connection management and provides support for graph QUERY, EXPLAIN, and DELETE commands.\n\n## RedisGraph compatibility\nThe current version of `redisgraph-rb` is compatible with RedisGraph versions \u003e= 1.99 (module version: 19900).\n\n### Previous Version\nFor RedisGraph versions \u003e= 1.0 and \u003c 2.0 (ie module version: 10202), instead use and refer to\nthe redisgraph gem version ~\u003e 1.0.0\n\nwhich corresponds to the following docker image\n`docker run -p 6379:6379 -it --rm redislabs/redisgraph:1.2.2`\n\n## Installation\nTo install, run:\n\n`$ gem install redisgraph`\n\nOr include `redisgraph` as a dependency in your Gemfile.\n\n## Usage\n```\nrequire 'redisgraph'\n\ngraphname = \"sample\"\n\nr = RedisGraph.new(graphname)\n\ncmd = \"\"\"CREATE (:person {name: 'Jim', age: 29})-[:works]-\u003e(:employer {name: 'Dunder Mifflin'})\"\"\"\nresponse = r.query(cmd)\nresponse.stats\n =\u003e {:labels_added=\u003e2, :nodes_created=\u003e2, :properties_set=\u003e3, :relationships_created=\u003e1, :internal_execution_time=\u003e0.705541}\n\ncmd = \"\"\"MATCH ()-[:works]-\u003e(e:employer) RETURN e\"\"\"\n\nresponse = r.query(cmd)\n\nresponse.print_resultset\n--------------------------------\n| e                            |\n--------------------------------\n| [{\"name\"=\u003e\"Dunder Mifflin\"}] |\n--------------------------------\n\nr.delete\n =\u003e \"Graph removed, internal execution time: 0.416024 milliseconds\"\n```\n\n## Specifying Redis options\nRedisGraph connects to an active Redis server, defaulting to `host: localhost, port: 6379`. To provide custom connection parameters, instantiate a RedisGraph object with a `redis_options` hash:\n\n`r = RedisGraph.new(\"graphname\", redis_options= { host: \"127.0.0.1\", port: 26380 })`\n\nThese parameters are described fully in the documentation for https://github.com/redis/redis-rb\n\n## Running tests\nTo ensure prerequisites are installed, run the following:\n`bundle install`\n\nThese tests expect a Redis server with the Graph module loaded to be available at localhost:6379\n\nThe currently compatible version of the RedisGraph module may be run as follows:\n`docker run -p 6379:6379 -it --rm redislabs/redisgraph:2.0-edge`\n\nA simple test suite is provided, and can be run with:\n`rspec`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredisgraph%2Fredisgraph-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredisgraph%2Fredisgraph-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredisgraph%2Fredisgraph-rb/lists"}