Method: Cequel::Metal::Keyspace#client

Defined in:
lib/cequel/metal/keyspace.rb

#clientCassandra::Session

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the low-level client session provided by the adapter.

Returns:

  • (Cassandra::Session)

    the low-level client session provided by the adapter

Since:

  • 1.0.0



174
175
176
177
178
# File 'lib/cequel/metal/keyspace.rb', line 174

def client
  synchronize do
    @client ||= cluster.connect(name)
  end
end