class

CryBase::Interfaces::Client

Inherits Reference < Object

Common contract every database-specific client in CryBase must satisfy. Subtypes carry their own auth, endpoint shape, and connect semantics on top of this base.

client = CryBase::CouchBase::Client.new("couchbase://localhost")
client.is_a?(CryBase::Interfaces::Client) # => true
client.connection_string.hosts            # => ["localhost"]
client.connected?                         # => false
client.close

Instance methods

close

Releases any resources held by the client. Must be idempotent.

Source
connected?

Whether the client has completed a successful connect.

Source
connection_string

The parsed connection string the client was constructed from.

Source