Module: Vostok::Rails
- Defined in:
- lib/vostok/rails.rb,
lib/vostok/rails/version.rb
Constant Summary collapse
- VERSION =
"0.0.3"
Instance Method Summary collapse
Instance Method Details
#import(columns, values) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/vostok/rails.rb', line 6 def import(columns, values) unless connection.is_a? ActiveRecord::ConnectionAdapters::PostgreSQLAdapter raise NotImplementedError, 'Only PostgreSQL (PG gem) is supported' end conn = connection.instance_variable_get(:@connection) import = Vostok::Import.new(conn) import.start(table_name, columns, values) end |