* PQconnectdb * * establishes a connection to a postgres backend through the postmaster * using connection information in a string. * * The conninfo string is either a whitespace-separated list of * * option = value * * definitions or a URI (refer to the documentation for details.) Value * might be a single value containing no whitespaces or a single quoted * string. If a single quo
| 779 | * call succeeded. |
| 780 | */ |
| 781 | PGconn * |
| 782 | PQconnectdb(const char *conninfo) |
| 783 | { |
| 784 | PGconn *conn = PQconnectStart(conninfo); |
| 785 | |
| 786 | if (conn && conn->status != CONNECTION_BAD) |
| 787 | (void) connectDBComplete(conn); |
| 788 | |
| 789 | return conn; |
| 790 | } |
| 791 | |
| 792 | /* |
| 793 | * PQping |