register/2 is an Erlang function exported by "postgres" module. This function registers a new DB configuration for connectivity to PostgreSQL server. The following parameters are allowed for this function: •{host, string()} - Host name of the DB server •{host_ip, string()} - IP address of the DB server •{database, string()} - Name of Postgres database •{user, string()} - User name •{password, string()} - User password •{port, integer()} - Port number of the DB server. Should be used with server Host or IP address only when it is required. •{timeout, integer()} - Connection timeout. Please refer to PostgreSQL decomentation for detsails. |
|
|