Prev | Current Page 512 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"


adapter_name()
adapter_name returns the human readable name of the connection adapter.
disconnect!()
disconnect! closes the database connection associated with this adapter.
prefect_primary_key?(table_name = nil)
This method returns true if the primary key for a new record must be retrieved before the
insert statement is executed. If this is true, then next_sequence_value is called before each
insert to get the new record??™s primary key value. This is currently only true for the Firebird
database adapter.
raw_connection()
Return the underlying database connection with this method, which can be used to call proprietary
database methods.
reconnect!()
Close the current connection and open a new connection to the database with reconnect!.
requires_reloaded?()
This method returns true if it is safe to reload the database connection between requests. It is
used in development mode and is currently unsafe for the Ruby/MySQL adapter and unnecessary
for any database adapter except SQLite.
supports_count_distinct?()
This method returns true if this connection adapter supports using DISTINCT with COUNT.


Pages:
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524