String with settings for connection to PostgreSQL database.
The string can be empty (in this case, default parameters are used) or it can contain one or more parameter settings separated by white space. Parameters are specified in the following format: keyword = value. Spaces around the equal sign are optional. To specify an empty value or a value containing spaces, enclose it in single quotes. If the string is empty, default parameters are used.
For details, refer to http://www.postgresql.org/docs/9.3/static/libpq-connect.html.
In addition is recommended to use the connect_timeout parameter that specifies wait time for a connection to be established.
Examples:
ConnectionString = host=localhost port=5432 user=ai password=qwerty dbname=drweb
ConnectionString = hostaddr=127.0.0.1 port=5432 dbname=mailddb user=mailddbuser password=Str0ngPaSSw0rd connect_timeout=5s
|