* PQconnectdbParams * * establishes a connection to a postgres backend through the postmaster * using connection information in two arrays. * * The keywords array is defined as * * const char *params[] = {"option1", "option2", NULL} * * The values array is defined as * * const char *values[] = {"value1", "value2", NULL} * * Returns a PGconn* which is needed for all subsequent l
| 723 | * call succeeded. |
| 724 | */ |
| 725 | PGconn * |
| 726 | PQconnectdbParams(const char *const *keywords, |
| 727 | const char *const *values, |
| 728 | int expand_dbname) |
| 729 | { |
| 730 | PGconn *conn = PQconnectStartParams(keywords, values, expand_dbname); |
| 731 | |
| 732 | if (conn && conn->status != CONNECTION_BAD) |
| 733 | (void) connectDBComplete(conn); |
| 734 | |
| 735 | return conn; |
| 736 | |
| 737 | } |
| 738 | |
| 739 | /* |
| 740 | * PQpingParams |
no test coverage detected