| #adapter_name |
Returns the human-readable name of the adapter. |
| #check_all_foreign_keys_valid! |
Override to check all foreign key constraints in a database. |
| #clear_cache! |
Clear any caching the database adapter may be doing. |
| #close |
Check the connection back in to the connection pool. |
|
#connect!,
#connection_retries,
#default_timezone,
|
| #disable_extension |
This is meant to be implemented by the adapters that support extensions. |
| #disable_referential_integrity |
Override to turn off referential integrity while executing &block. |
| #discard! |
Immediately forget this connection ever existed. |
| #disconnect! |
Disconnects from the database if already connected. |
| #enable_extension |
This is meant to be implemented by the adapters that support extensions. |
| #extensions |
A list of extensions, to be filled in by adapters that support them. |
| #index_algorithms |
A list of index algorithms, to be filled by adapters that support them. |
| #lease |
this method must only be called while holding connection pool’s mutex. |
|
#max_jitter,
#pool_jitter,
|
| #prefetch_primary_key? |
Should primary key values be selected from their corresponding sequence before the insert statement? If true, next_sequence_value is called before each insert to set the record’s primary key. |
|
#prepared_statements?,
|
| #raw_connection |
Provides access to the underlying database driver for this adapter. |
| #reconnect! |
Disconnects from the database if already connected, and establishes a new connection with the database. |
| #reset! |
Reset the state of this connection, directing the DBMS to clear transactions and other connection-related server-side state. |
|
#retry_deadline,
|
| #role |
The role (e.g. :writing) for the current connection. |
|
#schema_cache,
|
| #schema_version |
Returns the version identifier of the schema currently available in the database. |
| #shard |
The shard (e.g. :default) for the current connection. |
| #throw_away! |
Removes the connection from the pool and disconnect it. |
|
#unprepared_statement,
|
| #verify! |
Checks whether the connection to the database is still active (i.e. not stale). |
|
#verify_timeout,
|
| #any_raw_connection |
Returns a raw connection for internal use with methods that are known to both be thread-safe and not rely upon actual server communication. |
|
#arel_visitor,
#attempt_configure_connection,
#backoff,
|
| #build_result |
Builds the result object. |
|
#build_statement_pool,
#can_perform_case_insensitive_comparison_for?,
#collector,
#column_for,
#column_for_attribute,
|
| #configure_connection |
Perform any necessary initialization upon the newly-established connection settings, run queries to configure any application-global “session” variables, etc. |
|
#default_prepared_statements,
#extended_type_map_key,
#invalidate_transaction,
#log,
#reconnect,
#retryable_connection_error?,
#retryable_query_error?,
#translate_exception,
#translate_exception_class,
#type_map,
|
| #valid_raw_connection |
Similar to any_raw_connection, but ensures it is validated and connected. |
| #verified! |
Mark the connection as verified. |
|
#warning_ignored?,
|
| #with_raw_connection |
Lock the monitor, ensure we’re properly connected and transactions are materialized, and then yield the underlying raw connection object. |
| #add_enum_value |
This is meant to be implemented by the adapters that support custom enum types. |
| #build_insert_sql |
Called by ::ActiveRecord::InsertAll, Passed an instance of ::ActiveRecord::InsertAll::Builder, This method implements standard bulk inserts for all databases, but should be overridden by adapters to implement common features with non-standard syntax like handling duplicates or returning values. |
|
#case_insensitive_comparison,
#case_sensitive_comparison,
#check_version,
#clean!,
|
| #connection_age |
Seconds since this connection was established. |
|
#connection_descriptor,
|
| #create_enum |
This is meant to be implemented by the adapters that support custom enum types. |
| #create_virtual_table |
This is meant to be implemented by the adapters that support virtual tables. |
|
#database_version,
#default_index_type?,
#default_uniqueness_comparison,
|
| #drop_enum |
This is meant to be implemented by the adapters that support custom enum types. |
| #drop_virtual_table |
This is meant to be implemented by the adapters that support virtual tables. |
|
#ensure_writes_are_allowed,
|
| #expire |
this method must only be called while holding connection pool’s mutex. |
| #force_retirement |
Mark the connection as needing to be retired, as if the age has exceeded the maximum allowed. |
| #get_advisory_lock |
This is meant to be implemented by the adapters that support advisory locks. |
|
#get_database_version,
#inspect,
#native_database_types,
#prepared_statements_disabled_cache,
|
| #release_advisory_lock |
This is meant to be implemented by the adapters that support advisory locks. |
| #rename_enum |
This is meant to be implemented by the adapters that support custom enum types. |
| #rename_enum_value |
This is meant to be implemented by the adapters that support custom enum types. |
|
#return_value_after_insert?,
|
| #seconds_idle |
Seconds since this connection was returned to the pool. |
| #seconds_since_last_activity |
Seconds since this connection last communicated with the server. |
| #steal! |
this method must only be called while holding connection pool’s mutex (and a desire for segfaults). |
|
#valid_type?,
#instrumenter
|