Module: ActiveRecord::ConnectionAdapters::SQLite3::Quoting

Included in:
ActiveRecord::ConnectionAdapters::SQLite3Adapter
Defined in:
activerecord/lib/active_record/connection_adapters/sqlite3/quoting.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#quote_column_name(name) ⇒ Object


13
14
15
# File 'activerecord/lib/active_record/connection_adapters/sqlite3/quoting.rb', line 13

def quote_column_name(name)
  @quoted_column_names[name] ||= %Q("#{super.gsub('"', '""')}")
end

#quote_string(s) ⇒ Object


5
6
7
# File 'activerecord/lib/active_record/connection_adapters/sqlite3/quoting.rb', line 5

def quote_string(s)
  @connection.class.quote(s)
end

#quote_table_name_for_assignment(table, attr) ⇒ Object


9
10
11
# File 'activerecord/lib/active_record/connection_adapters/sqlite3/quoting.rb', line 9

def quote_table_name_for_assignment(table, attr)
  quote_column_name(attr)
end

#quoted_time(value) ⇒ Object


17
18
19
# File 'activerecord/lib/active_record/connection_adapters/sqlite3/quoting.rb', line 17

def quoted_time(value)
  quoted_date(value)
end