class ODBCAdapter::Adapters::NullODBCAdapter

A default adapter used for databases that are no explicitly listed in the registry. This allows for minimal support for DBMSs for which we don't have an explicit adapter.

Public Instance Methods

arel_visitor() click to toggle source

Using a BindVisitor so that the SQL string gets substituted before it is sent to the DBMS (to attempt to get as much coverage as possible for DBMSs we don't support).

# File lib/odbc_adapter/adapters/null_odbc_adapter.rb, line 14
def arel_visitor
  BindSubstitution.new(self)
end
prepared_statements() click to toggle source

Explicitly turning off prepared_statements in the null adapter because there isn't really a standard on which substitution character to use.

# File lib/odbc_adapter/adapters/null_odbc_adapter.rb, line 20
def prepared_statements
  false
end
supports_migrations?() click to toggle source

Turning off support for migrations because there is no information to go off of for what syntax the DBMS will expect.

# File lib/odbc_adapter/adapters/null_odbc_adapter.rb, line 26
def supports_migrations?
  false
end