Sha256: 2331f665ec61023ec13f85e0cc6f447175ff9de3172cbde6700f82e974bc0205

Contents?: true

Size: 757 Bytes

Versions: 1

Compression:

Stored size: 757 Bytes

Contents

module ElasticsearchMysqlImporter
  class Configuration
    attr_accessor :mysql_host, :mysql_port, :mysql_socket, :mysql_username, :mysql_password, :mysql_encoding
    attr_accessor :mysql_database, :mysql_options, :prepared_query, :query, :primary_key, :output_file
    attr_accessor :elasticsearch_host, :elasticsearch_port, :elasticsearch_index, :elasticsearch_type

    def initialize
      super

      @mysql_host = 'localhost'
      @mysql_port = '3306'
      @mysql_socket = nil
      @mysql_username = 'root'
      @mysql_password = ''
      @mysql_encoding = 'utf8'
      @mysql_options = { :cast => false, :cache_rows => true }
      @primary_key = 'id'
      @elasticsearch_host = 'localhost'
      @elasticsearch_port = 9200
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elasticsearch_mysql_importer-0.0.2 lib/elasticsearch_mysql_importer/configuration.rb