CouchdbClient::createDatabase

Creates a CouchDB database

Description

public bool CouchdbClient::createDatabase ([ string $db_name ] )

Warning

This function is currently not documented; only its argument list is available.

Parameters

db_name

Specifies the name of the database to be created, if not specified the database name specified by the constructor is used. If none was specified both by this method and the constructor, an CouchdbClientException will be thrown.

Return Values

Returns true on success.

Errors/Exceptions

Throws CouchdbClientException.

Examples

Example #1 CouchdbClient::createDatabase example

<?php

/* ... */

?>

The above example will output something similar to:

...