postgres
bool
PGClient
bool
- - If connection is successful, it returns true.error
- If connection is unsuccessful, it returns the error.Param | Type | Description |
---|---|---|
host | string | The host of the Postgres database. |
port | int | The port of the Postgres database. |
username | string | The username to connect to the Postgres database. |
password | string | The password to connect to the Postgres database. |
bool
PGClient
bool
- - If connection is successful, it returns true.error
- If connection is unsuccessful, it returns the error.Param | Type | Description |
---|---|---|
host | string | The host of the Postgres database. |
port | int | The port of the Postgres database. |
username | string | The username to connect to the Postgres database. |
password | string | The password to connect to the Postgres database. |
dbName | string | The name of the database to connect to. |
string
PGClient
string
- - The result of the query execution.error
- If query execution is unsuccessful, it returns the error.Param | Type | Description |
---|---|---|
host | string | The host of the Postgres database. |
port | int | The port of the Postgres database. |
username | string | The username to connect to the Postgres database. |
password | string | The password to connect to the Postgres database. |
dbName | string | The name of the database to connect to. |
query | string | The query to execute on the database. |
bool
PGClient
bool
- - If the host and port are running Postgres database, it returns true.error
- If the check is unsuccessful, it returns the error.Param | Type | Description |
---|---|---|
host | string | The host to check. |
port | int | The port to check. |