module ActiveRecord::Import::SQLite3Adapter
Constants
- MIN_VERSION_FOR_IMPORT
- SQLITE_LIMIT_COMPOUND_SELECT
Public Instance Methods
next_value_for_sequence(sequence_name)
click to toggle source
# File lib/activerecord-import/adapters/sqlite3_adapter.rb, line 40 def next_value_for_sequence(sequence_name) %Q{nextval('#{sequence_name}')} end
supports_import?(current_version = sqlite_version)
click to toggle source
Override our conformance to ActiveRecord::Import::ImportSupport interface to ensure that we only support import in supported version of SQLite. Which INSERT statements with multiple value sets was introduced in 3.7.11.
# File lib/activerecord-import/adapters/sqlite3_adapter.rb, line 10 def supports_import?(current_version = sqlite_version) if current_version >= MIN_VERSION_FOR_IMPORT true else false end end