[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.2 Database URL

Anubis database is identified by its URL, or Universal Resource Locator. A URL consists of following elements (square brackets enclose optional elements):

 
proto://[[user[:password]@]host]/path[params]

where:

proto

Specifies the database protocol. The protocol describes how the database is to be accessed. In a way, it may be regarded as specifying the database type. Currently, GNU Anubis supports the following database protocols:

`text'

A plain text file with users' credentials.

`gdbm'

GDBM database

`mysql'

MySQL database

`pgsql'

PostgreSQL database

`postgres'

Alias for `pgsql'.

These protocols are described in detail below.

user

The name of the user authorized to access the database.

password

Password for the above user.

host

Domain name or IP address of a machine running the database.

path

A path to the database. The exact meaning of this element depends on the database protocol. It is described in detail when discussing particular protocols.

params

A list of protocol-dependent parameters. Each parameter consists of the parameter name, or keyword and its value separated by a equals sign:

 
keyword=name

Multiple parameters are separated by semicolons.


This document was generated on May, 24 2014 using texi2html 1.76.