Sha256: e5240f08ba7840fd5e93352a96be4f277d2052895e0b82e5ce3fecd3e078d575

Contents?: true

Size: 519 Bytes

Versions: 88

Compression:

Stored size: 519 Bytes

Contents

module Neo4j
  module ActiveNode
    module Query
      module QueryProxyFindInBatches
        def find_in_batches(options = {})
          query.return(identity).find_in_batches(identity, @model.primary_key, options) do |batch|
            yield batch.map(&:identity)
          end
        end

        def find_each(options = {})
          query.return(identity).find_each(identity, @model.primary_key, options) do |result|
            yield result.send(identity)
          end
        end
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
neo4j-7.0.7 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-6.1.11 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.6 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.5 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.4 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.3 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.2 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.1 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.0 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.0.rc.7 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.0.rc.6 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.0.rc.5 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-6.1.10 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-6.0.8 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.0.rc.4 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.0.rc.3 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.0.rc.2 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-6.1.9 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-6.0.7 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-7.0.0.rc.1 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb