Class: DataObjects::Connection

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 inherited new new to_s

### Included Modules

Extlib::Pooling Quoting

### External Aliases

release | -> | close

### Public Class methods

inherited(target)

Ensure that all Connection subclasses handle pooling and logging uniformly. See also Extlib::Pooling and DataObjects::Logger

new(*args)

Allocate a Connection object from the pool, creating one if necessary. This method is active in Connection subclasses only.

new(uri_s)

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_command(text)

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

to_s()

Show the URI for this connection

[Validate]