Sha256: 0b5b2259253a43d5f2519c784a54305dc98d46692fd4840ce000b3778fb023cd

Contents?: true

Size: 379 Bytes

Versions: 4

Compression:

Stored size: 379 Bytes

Contents

module SqlPostgres

  # This is a special connection that is used when there isn't a real
  # one.  Any attempt to use it causes a NoConnection exception.

  class NullConnection

    # Raises NoConnection

    def method_missing(method, *args)
      raise NoConnection
    end

  end

end

# Local Variables:
# tab-width: 2
# ruby-indent-level: 2
# indent-tabs-mode: nil
# End:

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sqlpostgres-1.3.0 lib/sqlpostgres/NullConnection.rb
sqlpostgres-1.2.6 lib/sqlpostgres/NullConnection.rb
sqlpostgres-1.2.5 lib/sqlpostgres/NullConnection.rb
sqlpostgres-1.2.4 lib/sqlpostgres/NullConnection.rb