Use these steps to create or update a configuration file that includes entries to one or more datastores.
<datastores> </datastores>
<server name=$(env-name) type="postgresql" access="odbc"/>
For example, for a local PostgreSQL connection on the default port:
<datastores> <server name="localhost:5432" type="postgresql" access="odbc"> </server> </datastores>
<datastores> <server name="localhost:5432" type="postgresql" access="odbc"> <dsn name=<data-source> type="database" dbname="postgres" userid=<user> password=<pass>/> </server> </datastores>
<datastores> <server name="localhost:5432" type="postgresql" access="odbc"> <dsn name=<data-source> type="database" dbname="postgres" userid=<user> password=<pass>/> <dsn name=<data-source> type="datastore" dsname=<name> optio=<opt> userid=<user> password=<pass>/> </server> </datastores>
The following is an example of a configuration file that contains a datastore, a region database, and a cross-region database.
<datastores> <server name="localhost:5432" type="postgresql" access="odbc"> <dsn name="PG.POSTGRES" type="database" dbname="postgres" userid="clerk" password="clerk321"/> <dsn name="PG.VSAM" type="datastore" dsname="VSAM" optio="none" userid="clerk" password="clerk321"/> <dsn name="PG.ESDEMO" type="region.cas" region="PGDEMO" feature="all" userid="clerk" password="clerk321"/> <dsn name="PG.CROSSREGION" type="crossregion.cas" userid="clerk" password="clerk321"/> </server> </datastores>
Next, you must use the dbfhdeploy command line utility to create the datastore and add files to it.