Sha256: f68fe5566d6bff0da440c8c603e57188e7c90d7e517cc54b7100ec1ba30b50f9

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

require 'rbhive'

class Query
  def table_schema
    RBHive::TableSchema.new('people', nil, line_sep: '\n', field_sep: ';') do
      column :name, :string
      column :address, :string
      column :amount, :float
    end
  end

  def table_name
    table_schema.name
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-hive-0.6.3 examples/lib/query.rb
rspec-hive-0.6.2 examples/lib/query.rb
rspec-hive-0.6.1 examples/lib/query.rb
rspec-hive-0.6.0 examples/lib/query.rb