class ActiveRecord::ConnectionAdapters::SQLite3Adapter
Currently our adapter is named the same as what AR5 names its adapter. We will need to get this changed at some point so this can be a unique name and we can extend activerecord ActiveRecord::ConnectionAdapters::SQLite3Adapter
. Once we can do that we can remove the module SQLite3 above and remove a majority of this file.
Public Class Methods
jdbc_connection_class()
click to toggle source
@see ActiveRecord::ConnectionAdapters::JdbcAdapter#jdbc_connection_class
# File lib/arjdbc/sqlite3/adapter.rb, line 704 def self.jdbc_connection_class ::ActiveRecord::ConnectionAdapters::SQLite3JdbcConnection end
Public Instance Methods
begin_isolated_db_transaction(isolation)
click to toggle source
# File lib/arjdbc/sqlite3/adapter.rb, line 673 def begin_isolated_db_transaction(isolation) raise ActiveRecord::TransactionIsolationError, 'adapter does not support setting transaction isolation' end
encoding()
click to toggle source
FIXME: Add @connection.encoding then remove this method
# File lib/arjdbc/sqlite3/adapter.rb, line 685 def encoding select_value 'PRAGMA encoding' end
jdbc_column_class()
click to toggle source
# File lib/arjdbc/sqlite3/adapter.rb, line 695 def jdbc_column_class ::ActiveRecord::ConnectionAdapters::SQLite3Column end
jdbc_connection_class(spec)
click to toggle source
# File lib/arjdbc/sqlite3/adapter.rb, line 699 def jdbc_connection_class(spec) self.class.jdbc_connection_class end
quote(value, comment=nil)
click to toggle source
FIXME: 5.1 crashes without this. I think this is Arel
hitting a fallback path in to_sql.rb. So maybe an untested code path in their source. Still means we are doing something wrong to even hit it.
Calls superclass method
# File lib/arjdbc/sqlite3/adapter.rb, line 680 def quote(value, comment=nil) super(value) end