Class: DataTaster::FileOutput
- Inherits:
-
Output
- Object
- Output
- DataTaster::FileOutput
show all
- Defined in:
- lib/data_taster/adapters/file_output.rb,
sig/data_taster.rbs
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Output
#export_mode, #initialize
Instance Attribute Details
#path ⇒ String
Returns the value of attribute path.
5
6
7
|
# File 'lib/data_taster/adapters/file_output.rb', line 5
def path
@path
end
|
#target_database ⇒ String
Returns the value of attribute target_database.
5
6
7
|
# File 'lib/data_taster/adapters/file_output.rb', line 5
def target_database
@target_database
end
|
Instance Method Details
#default_data ⇒ Object
14
15
16
|
# File 'lib/data_taster/adapters/file_output.rb', line 14
def default_data
{}
end
|
#qualified_table_name(table_name) ⇒ Object
#run_sanitization? ⇒ Boolean
18
19
20
|
# File 'lib/data_taster/adapters/file_output.rb', line 18
def run_sanitization?
false
end
|
#sample! ⇒ Object
7
8
9
10
11
12
|
# File 'lib/data_taster/adapters/file_output.rb', line 7
def sample!
start_export
process_export
ensure
finish_export
end
|
#write_raw(line) ⇒ Object
30
31
32
|
# File 'lib/data_taster/adapters/file_output.rb', line 30
def write_raw(line)
@io.puts line
end
|
#write_statement(sql) ⇒ Object
26
27
28
|
# File 'lib/data_taster/adapters/file_output.rb', line 26
def write_statement(sql)
@io.puts "#{sql};"
end
|