Sha256: 04d096d502d54a72045e528274e09f4d575439165c1e868b2977839cceaa99cb

Contents?: true

Size: 282 Bytes

Versions: 2

Compression:

Stored size: 282 Bytes

Contents

module CypherBuilder
  def Where(*parts)
    Where.new(*parts)
  end

  class Where
    include Resolver

    def initialize(*parts)
      @parts = wrap(*parts)
    end

    def as_cypher(opts)
      resolve(@parts, format: 'WHERE %s', separator: ' AND ', ** opts)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cypher_builder-0.0.2 lib/cypher_builder/where.rb
cypher_builder-0.0.1 lib/cypher_builder/where.rb