Class: LoadDataInfile2::Sql
- Inherits:
-
Object
- Object
- LoadDataInfile2::Sql
- Defined in:
- lib/load_data_infile2/sql.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(file, table, options = {}) ⇒ Sql
constructor
A new instance of Sql.
Constructor Details
#initialize(file, table, options = {}) ⇒ Sql
Returns a new instance of Sql.
23 24 25 26 27 |
# File 'lib/load_data_infile2/sql.rb', line 23 def initialize(file, table, = {}) @file = file @table = table @options = end |
Instance Method Details
#build ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/load_data_infile2/sql.rb', line 29 def build [ load_data_infile, replace_or_ignore, into_table, partition, character_set, fields, lines, ignore_lines, columns, set ].compact.join(' ').concat(';') end |