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.

Methods

create_command   extension   inherited   new   new   to_s  

Included Modules

Logging Pooling Quoting

External Aliases

dispose -> close
release -> close

Public Class methods

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.

Public Instance methods

Create a Command object of the right subclass using the given text

Show the URI for this connection, without the password the connection was setup with

[Validate]