Class: ElasticsearchMysqlImporter::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/elasticsearch_mysql_importer/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 6

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'
end

Instance Attribute Details

#mysql_databaseObject

Returns the value of attribute mysql_database.



4
5
6
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 4

def mysql_database
  @mysql_database
end

#mysql_encodingObject

Returns the value of attribute mysql_encoding.



3
4
5
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 3

def mysql_encoding
  @mysql_encoding
end

#mysql_hostObject

Returns the value of attribute mysql_host.



3
4
5
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 3

def mysql_host
  @mysql_host
end

#mysql_optionsObject

Returns the value of attribute mysql_options.



4
5
6
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 4

def mysql_options
  @mysql_options
end

#mysql_passwordObject

Returns the value of attribute mysql_password.



3
4
5
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 3

def mysql_password
  @mysql_password
end

#mysql_portObject

Returns the value of attribute mysql_port.



3
4
5
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 3

def mysql_port
  @mysql_port
end

#mysql_socketObject

Returns the value of attribute mysql_socket.



3
4
5
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 3

def mysql_socket
  @mysql_socket
end

#mysql_usernameObject

Returns the value of attribute mysql_username.



3
4
5
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 3

def mysql_username
  @mysql_username
end

#output_fileObject

Returns the value of attribute output_file.



4
5
6
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 4

def output_file
  @output_file
end

#prepared_queryObject

Returns the value of attribute prepared_query.



4
5
6
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 4

def prepared_query
  @prepared_query
end

#primary_keyObject

Returns the value of attribute primary_key.



4
5
6
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 4

def primary_key
  @primary_key
end

#queryObject

Returns the value of attribute query.



4
5
6
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 4

def query
  @query
end