abstract class
CryBase::Interfaces::Client
- CryBase::Interfaces::Client
- Reference
- Object
Overview
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
Direct Known Subclasses
Defined in:
crybase/interfaces/client.crInstance Method Summary
-
#close : Nil
Releases any resources held by the client.
-
#connected? : Bool
Whether the client has completed a successful
connect. -
#connection_string : ConnectionString
The parsed connection string the client was constructed from.
Instance Method Detail
abstract
def connection_string : ConnectionString
#
The parsed connection string the client was constructed from.