Create a connection to Couchbase Server with given parameters, such as node URL. The connection obtains the cluster configuration from the first host to which it has connected. Further communication operates directly with each node in the cluster as required.
connect url username passwordWhere:
url (string) -
URL for Couchbase Server Instance
username (string) -
Username
password (string) -
Password
Ruby (Fauna)
object.new([ url ] [, bucket-symbol ] [, username ] [, password ] [, ruby-connect-options ])
Returns: (none)
Ruby (Fauna)
object.new([ url ] [, bucket-symbol ] [, username ] [, password ] [, ruby-connect-options ])
Returns: (none)
PHP (Couchbase PHP SDK)
$object->new Couchbase([ $url ] [, $username ] [, $password ] [, $bucket ] [, $persistent ])
Returns: scalar; supported values:
.NET Client Library
object.new CouchbaseClient([ url ] [, username ] [, password ])
Returns: (none)
Java (spymemcached)
client.new CouchbaseClient([ url ] [, urls ] [, username ] [, password ])
Returns: (none)