Class: ElasticsearchMysqlImporter::Configuration
- Inherits:
-
Object
- Object
- ElasticsearchMysqlImporter::Configuration
- Defined in:
- lib/elasticsearch_mysql_importer/configuration.rb
Instance Attribute Summary collapse
-
#mysql_database ⇒ Object
Returns the value of attribute mysql_database.
-
#mysql_encoding ⇒ Object
Returns the value of attribute mysql_encoding.
-
#mysql_host ⇒ Object
Returns the value of attribute mysql_host.
-
#mysql_options ⇒ Object
Returns the value of attribute mysql_options.
-
#mysql_password ⇒ Object
Returns the value of attribute mysql_password.
-
#mysql_port ⇒ Object
Returns the value of attribute mysql_port.
-
#mysql_socket ⇒ Object
Returns the value of attribute mysql_socket.
-
#mysql_username ⇒ Object
Returns the value of attribute mysql_username.
-
#output_file ⇒ Object
Returns the value of attribute output_file.
-
#prepared_query ⇒ Object
Returns the value of attribute prepared_query.
-
#primary_key ⇒ Object
Returns the value of attribute primary_key.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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' = { :cast => false, :cache_rows => true } @primary_key = 'id' end |
Instance Attribute Details
#mysql_database ⇒ Object
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_encoding ⇒ Object
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_host ⇒ Object
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_options ⇒ Object
Returns the value of attribute mysql_options.
4 5 6 |
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 4 def end |
#mysql_password ⇒ Object
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_port ⇒ Object
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_socket ⇒ Object
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_username ⇒ Object
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_file ⇒ Object
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_query ⇒ Object
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_key ⇒ Object
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 |
#query ⇒ Object
Returns the value of attribute query.
4 5 6 |
# File 'lib/elasticsearch_mysql_importer/configuration.rb', line 4 def query @query end |