Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sample configuration file

...

Code Block
languagebash
titleSyntax
PGHost=localhost
PGUser=postgres
PGDBName=NLPGImporterTest
PGPwd=postgres
PGPort=5433
MyName=NLPG
PendingDir=F:\Python\NLPGImporter\Pending
CompletedDir=F:\Python\NLPGImporter\Completed
ArchiveDir=F:\Python\NLPGImporter\Archive

...

Setting up the configuration file

PGHost

Substitute localhost for whatever postgres host you wish to connect to.

PGUser

The postgres user who will access the postgres database

PGDBName

The name of the postgres database set up for the NLPG Importer

PGPwd

The password for the  above PGUser

PGPort

The port for your postgres host

MyName

Leave as MyName=NLPG

PendingDir

Set this as the path to the Pending folder where files to be imported will be placed

CompletedDir

Set this as the path to the Completed folder where files will be placed once processing is complete.

ArchiveDir

Set this as the path to the Archive folder. Files need to be placed here to serve as a record of which files have been received, and will be used if there is a need to reset the NLPG Importer back to the initial state.