PRepS Database Configuration File Sections

The configuration file contains two types of sections, the main Databases Section and one or more Database Details Sections.

A typical PRepS database configuration file looks like this:
[databases]
count=2
name0=design4
name1=myprs

[myprs]
host=localhost
port=5432
username=stuffle

[design4]
username=stuffle
host=localhost
port=5432

The Databases Section

The databases section stores the names of the databases to which the user has successfully connected. There are only two labels defined for use in the databases section.

count

The number of database entries that are defined. This number must match the number of nameX entries in this section.

nameX

Defines the name of the databases. The X represents a number. Numbering starts at 0 and goes until count - 1. Each database name must be unique (you cannot have two different entries for the same database).

A typical databases section looks like this:
[databases]
count=2
name0=design4
name1=myprs

The Database Details Sections

The database details section contains the detail information used to log on to the database. There must be one database details section for each of the nameX entries defined in the databases section. The actual name of each database details section corresponds to the name of the database.

username

The database username last used to log on to the database.

host

The name of the host machine for the database.

port

The port on which the database server is listening.

A typical database details section looks like this:
[myprs]
host=localhost
port=5432
username=stuffle