Class | DataObjects::Connection |
In: |
lib/data_objects/connection.rb
|
Parent: | Object |
An abstract connection to a DataObjects resource. The physical connection may be broken and re-established from time to time.
dispose | -> | close |
release | -> | close |
Ensure that all Connection subclasses handle pooling and logging uniformly. See also DataObjects::Pooling and DataObjects::Logger
Allocate a Connection object from the pool, creating one if necessary. This method is active in Connection subclasses only.
Make a connection to the database using the DataObjects::URI given. Note that the physical connection may be delayed until the first command is issued, so success here doesn‘t necessarily mean you can connect.