123456789_123456789_123456789_123456789_123456789_

Module: ActiveRecord::ConnectionAdapters::SQLite3::DatabaseStatements

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb

Instance Method Summary

Instance Method Details

#exec_update(sql, name = "SQL", binds = [])

Alias for #exec_delete.

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb', line 64

alias :exec_update :exec_delete

#explain(arel, binds = [], _options = [])

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb', line 18

def explain(arel, binds = [], _options = [])
  sql    = "EXPLAIN QUERY PLAN " + to_sql(arel, binds)
  result = internal_exec_query(sql, "EXPLAIN", [])
  SQLite3::ExplainPrettyPrinter.new.pp(result)
end

#high_precision_current_timestamp

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb', line 110

def high_precision_current_timestamp
  HIGH_PRECISION_CURRENT_TIMESTAMP
end