Sha256: a5ca64be511e25db1ceb24a1c68607790b180fdf4636c3345e6dba9fa4794257
Contents?: true
Size: 430 Bytes
Versions: 4
Compression:
Stored size: 430 Bytes
Contents
class CypherBuilder::Adapter::Neography def initialize(neo = ::Neography::Rest.new) @neo = neo end # @param query [#to_s] # @param params [#to_h] # @return [Array<Hash{Symbol => Object}>] def execute(query, params) result = @neo.execute_query(query.to_s, params.to_h) columns = result['columns'].map { |it| it.to_sym } data = result['data'] data.map { |values| columns.zip(values).to_h } end end
Version data entries
4 entries across 4 versions & 1 rubygems