Class: ActiveRecord::ConnectionAdapters::FirebirdAdapter

Inherits:
JdbcAdapter
  • Object
show all
Includes:
ArJdbc::Firebird, ArJdbc::Util::QuotedCache
Defined in:
lib/arjdbc/firebird/adapter.rb

Constant Summary

Constants included from ArJdbc::Firebird

ArJdbc::Firebird::ADAPTER_NAME, ArJdbc::Firebird::IDENTIFIER_LENGTH, ArJdbc::Firebird::NATIVE_DATABASE_TYPES

Constants inherited from JdbcAdapter

JdbcAdapter::ADAPTER_NAME

Constants included from ArJdbc::Abstract::DatabaseStatements

ArJdbc::Abstract::DatabaseStatements::NO_BINDS

Instance Attribute Summary

Attributes inherited from JdbcAdapter

#prepared_statements

Attributes included from ArJdbc::Abstract::Core

#config

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ArJdbc::Util::QuotedCache

#quote_column_name, #quote_table_name

Methods included from ArJdbc::Firebird

#adapter_name, #add_limit_offset!, #change_column, #clear_cache!, #column_name_length, column_selector, #create_table, #default_sequence_name, #drop_table, #ids_in_list_limit, #index_name_length, #initialize_type_map, #insert, #insert_limit_offset!, #jdbc_column_class, jdbc_connection_class, #native_database_types, #next_sequence_value, #prefetch_primary_key?, #quote, #quote_column_name, #quote_string, #quote_table_name_for_assignment, #quoted_date, #quoted_false, #quoted_true, #remove_index, #rename_column, #rename_table, #reset_sequence!, #supports_ddl_transactions?, #supports_migrations?, #supports_primary_key?, #table_alias_length, #table_name_length, #type_to_sql, update_lob_values=, #update_lob_values?, update_lob_values?

Methods inherited from JdbcAdapter

#adapter_name, #adapter_spec, arel2_visitors, #columns, configure_arel2_visitors, #data_source_exists?, #data_sources, #database_name, #exec_query_raw, #execute, #execute_quietly, #foreign_keys, #indexes, #is_a?, #jdbc_column_class, #jdbc_connection_class, #last_inserted_id, #modify_types, #native_database_types, #pk_and_sequence_for, #prepared_statements?, prepared_statements?, #primary_keys, #structure_dump, #supports_foreign_keys?, #supports_migrations?, #supports_views?, #table_definition, #table_exists?, #tables, #update_lob_value, #valid_type?, #write_large_object

Methods included from ArJdbc::Abstract::TransactionSupport

#begin_db_transaction, #begin_isolated_db_transaction, #commit_db_transaction, #create_savepoint, #exec_rollback_db_transaction, #exec_rollback_to_savepoint, #release_savepoint, #supports_savepoints?, #supports_transaction_isolation?

Methods included from ArJdbc::Abstract::DatabaseStatements

#exec_insert, #exec_query, #exec_update, #execute, #select_all

Methods included from ArJdbc::Abstract::ConnectionManagement

#active?, #disconnect!, #really_valid?, #reconnect!

Methods included from ArJdbc::Abstract::Core

#extract_raw_bind_values, #jdbc_connection, #log, #translate_exception, #translate_exception_class

Methods included from Jdbc::ConnectionPoolCallbacks

#on_checkin, #on_checkout

Constructor Details

#initialize(*args) ⇒ FirebirdAdapter

Returns a new instance of FirebirdAdapter.



398
399
400
401
# File 'lib/arjdbc/firebird/adapter.rb', line 398

def initialize(*args)
  ::ArJdbc::Firebird.initialize!
  super
end

Class Method Details

.emulate_booleansObject



395
# File 'lib/arjdbc/firebird/adapter.rb', line 395

def self.emulate_booleans;  ::ArJdbc::Firebird.emulate_booleans?; end

.emulate_booleans=(emulate) ⇒ Object



396
# File 'lib/arjdbc/firebird/adapter.rb', line 396

def self.emulate_booleans=(emulate); ::ArJdbc::Firebird.emulate_booleans = emulate; end

.emulate_booleans?Boolean

By default, the FirebirdAdapter will consider all columns of type char(1) as boolean. If you wish to disable this :

ActiveRecord::ConnectionAdapters::FirebirdAdapter.emulate_booleans = false

Returns:

  • (Boolean)


394
# File 'lib/arjdbc/firebird/adapter.rb', line 394

def self.emulate_booleans?; ::ArJdbc::Firebird.emulate_booleans?; end

Instance Method Details

#arel_visitorObject



403
404
405
# File 'lib/arjdbc/firebird/adapter.rb', line 403

def arel_visitor
  Arel::Visitors::Firebird.new(self)
end