reap

reap() Instance Public methods Removes dead connections from the pool. A dead connection can occur if a programmer forgets to close a connection at the end of a thread or a thread dies unexpectedly.

release_connection

release_connection(with_id = current_connection_id) Instance Public methods Signal that the thread is finished with the current connection. release_connection releases the connection-thread association and returns the connection to the pool.

remove

remove(conn) Instance Public methods Remove a connection from the connection pool. The connection will remain open and active but will no longer be managed by this pool.

with_connection

with_connection() Instance Public methods If a connection already exists yield it to the block. If no connection exists checkout a connection, yield it to the block, and checkin the connection when finished.

allowed_index_name_length

allowed_index_name_length() Instance Public methods Returns the maximum allowed length for an index name. This limit is enforced by rails and Is less than or equal to index_name_length. The gap between index_name_length is to allow internal rails operations to use prefixes in temporary operations.

column_name_length

column_name_length() Instance Public methods Returns the maximum length of a column name.

columns_per_multicolumn_index

columns_per_multicolumn_index() Instance Public methods Returns the maximum number of columns in a multicolumn index.

columns_per_table

columns_per_table() Instance Public methods Returns the maximum number of columns per table.

in_clause_length

in_clause_length() Instance Public methods Returns the maximum number of elements in an IN (x,y,z) clause. nil means no limit.

index_name_length

index_name_length() Instance Public methods Returns the maximum length of an index name.