Sha256: 253f7fb8a77156b202508b9eae4c1f4d1e62ec341c0fec17241472a99dda83fe

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

require 'helper'

class EnrichmentDb::Datum < EnrichmentDb::DatumModel
  def self.by_lambda(schema_name, table_name, condition)
    puts "Finding object from #{table_name} with condition #{condition}."
    query = "SELECT * FROM #{schema_name}.#{table_name} where #{condition}"
    
    result = EnrichmentDb.request(schema_name, query).collect do |record|
      record
    end

    format_result(result)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enrichment_db-0.1.9 lib/enrichment_db/datum.rb