rlx-db(3) -- database commands
==============================

## SYNOPSIS

Commands for operating on databases.

## COMMANDS

* `db [database]`:

Print the currently selected database if *database* is not specified or display an error if no database is selected. If *database* is specified it is selected, if the selected database does not exist a warning is printed but the database is still selected.

* `db ls [server]`:

List available databases. If no server is specified then the current server is used, if no server has been connected to then the default is used.

* `db use [database]`:

Select a database. This command is aliased by the shortcut command `use`.

* `db info [database]`:

Print information about a database. If no database is specified then the current database is used.

* `db add [database]`:

Create a database with the specified database name. If the database is created it is automatically selected with the `use` command.
	
* `db rm [database]`:

Delete a database with the specified database name. This is an irreversible operation so a prompt is displayed asking for confirmation prior to deletion.

* `db compact [database]`:

Compact a database, if no database is specified then the current database is used. Use the `design compact` command to compact a specific view.

* `db cleanup [database]`:

Perform view cleanup on a database. If no database is specified then the current database is used.

* `db commit [database]`:

Synchronize uncommitted changes to the disk. If no database is specified then the current database is used.

* `db changes [database] [parameters...]`:

Get a database changes feed.

* `db revslimit [database] [limit]`:

Get or set the revs limit for a database. If no limit is specified then this command retrieves the current limit, otherwise a request is made to set the revs limit for the database. If limit is not an integer then no request is made and the behaviour is to retrieve the current revs limit.

## BUGS

**rlx** is written in bash and depends upon `bash >= 4.2`.

## COPYRIGHT

**rlx** is copyright (c) 2013 muji <http://xpm.io>

## SEE ALSO

rlx(1), rlx-design(3), couchdb(3)
