CouchdbClient::dropDatabase

Drops (deletes) a CouchDB database.

Description

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

Warning

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

Parameters

db_name

The name of the database to delete, if not specified the name provided to the constructor is used. If no name is provided to both this method and the constructor a CouchdbClientException is thrown.

Return Values

Returns true on success.

Errors/Exceptions

Throws CouchdbClientException.

Examples

Example #1 CouchdbClient::dropDatabase example

<?php

/* ... */

?>

The above example will output something similar to:

...