Database Command Configuration

The configuration settings for the database command are divided into:

The names and purposes of the JSON properties align closely with their counterparts in the command-line options. Where applicable, the description of each JSON property links to the command-line option for more details.

Create database options

The example below illustrates the JSON structure for the create database options.

{
  "createDatabaseOptions": {
    "client": "/usr/bin/psql",
    "timeout": 60,
    "srid": 25832,
    "srsName": "urn:ogc:def:crs:EPSG::25832",
    "enableChangelog": false,
    "dropExisting": false
  }
}
Property Description Default value

"client"

Path to the database client executable.

Client found in your PATH

"timeout"

Time in seconds to wait for the operation to complete.

60

"srid"

SRID to use for the VCDB instance.

"srsName"

Name of the CRS to use for the VCDB instance.

urn:ogc:def:crs:EPSG::
<srid>

"enableChangelog"

Enable changelog extension for the VCDB instance.

false

"dropExisting"

First drop the existing VCDB instance.

false

Upgrade database options

The JSON structure for specifying database upgrade options is shown below.

{
  "upgradeDatabaseOptions": {
    "client": "/usr/bin/psql",
    "timeout": 60
  }
}
Property Description Default value

"client"

Path to the database client executable.

Client found in your PATH

"timeout"

Time in seconds to wait for the operation to complete.

60

Drop database options

Below is the JSON structure for specifying database drop options.

{
  "upgradeDatabaseOptions": {
    "client": "/usr/bin/psql",
    "timeout": 60
  }
}
Property Description Default value

"client"

Path to the database client executable.

Client found in your PATH

"timeout"

Time in seconds to wait for the operation to complete.

60