redgraph:RedisGraph Ruby客户端

时间:2021-04-11 17:27:11
【文件属性】:
文件名称:redgraph:RedisGraph Ruby客户端
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-11 17:27:11
Ruby 红图 一个简单的RedisGraph库。 这种宝石欠了很多现有宝石,但试图提供一个友好的界面,类似于现有和的客户。 安装 将此行添加到您的应用程序的Gemfile中: gem 'redgraph' 然后执行: $ bundle install 或将其自己安装为: $ gem install redgraph 用法 gem假设您已启动并正在运行最新版本的 。 基本用法: graph = Redgraph::Graph.new('movies', url: "redis://localhost:6379/1") 创建几个节点: actor = Redgraph::Node.new(label: 'actor', attributes: {name: "Al Pacino"}) graph.add_node(actor) film = Redgraph::Node.new(labe
【文件预览】:
redgraph-master
----bin()
--------console(272B)
--------setup(131B)
----Rakefile(226B)
----.github()
--------workflows()
----test()
--------graph_manipulation_test.rb(827B)
--------graph_connection_test.rb(255B)
--------test_helper.rb(289B)
--------redgraph_test.rb(175B)
--------graph_test.rb(1KB)
--------graph_queries_test.rb(2KB)
----Gemfile(196B)
----Gemfile.lock(420B)
----.gitignore(73B)
----CHANGELOG.md(140B)
----lib()
--------redgraph.rb(315B)
--------redgraph()
----README.md(2KB)
----LICENSE.txt(1KB)
----redgraph.gemspec(817B)

网友评论