Class: Object

### Home Classes Methods

### In Files

- lib/data_objects/spec/shared/command_spec.rb
- lib/data_objects/spec/shared/connection_spec.rb
- lib/data_objects/spec/shared/typecast/datetime_spec.rb

### Parent

BasicObject

### Methods

- #connecting_with
- #test_connection

### Class/Module Index

Quicksearch

- DataObjects
- DataObjects::Command
- DataObjects::Connection
- DataObjects::ConnectionError
- DataObjects::DataError
- DataObjects::Error
- DataObjects::Extension
- DataObjects::IntegrityError
- DataObjects::Logger
- DataObjects::Logging
- DataObjects::Pooling
- DataObjects::Pooling::InvalidResourceError
- DataObjects::Pooling::Pool
- DataObjects::Quoting
- DataObjects::Reader
- DataObjects::Result
- DataObjects::SQLError
- DataObjects::SavePoint
- DataObjects::Spec
- DataObjects::Spec::PendingHelpers
- DataObjects::SyntaxError
- DataObjects::Transaction
- DataObjects::TransactionError
- DataObjects::URI
- Extlib
- Extlib::ByteArray
- CustomTextType
- MyString
- Object
- SSLHelpers

No matching classes.

# Object

### Constants

JRUBY
WINDOWS

### Public Instance Methods

connecting_with(uri) click to toggle source

FIXME JRuby (and MRI): Should these be ArgumentError or DataObjects::SQLError?

    # File lib/data_objects/spec/shared/connection_spec.rb, line 112
    def connecting_with(uri)
      lambda { DataObjects::Connection.new(uri) }
    end

test_connection(conn) click to toggle source

    # File lib/data_objects/spec/shared/connection_spec.rb, line 1
    def test_connection(conn)
      reader = conn.create_command(CONFIG.testsql || "SELECT 1").execute_reader
      reader.next!
      result = reader.values[0]
      result
    ensure
      reader.close
      conn.close
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.