79 * checks if conn is a working connection and logs an error message if not |
79 * checks if conn is a working connection and logs an error message if not |
80 * conn can be null (resulting in an error message) |
80 * conn can be null (resulting in an error message) |
81 * if conn is not null but the status is not CONNECTION_OK, |
81 * if conn is not null but the status is not CONNECTION_OK, |
82 * conn will be destroyed |
82 * conn will be destroyed |
83 */ |
83 */ |
84 int pg_check_connection(const char *rpname, PGconn *connection); |
84 int pg_check_connection(int loglevel, const char *rpname, PGconn *connection); |
85 |
85 |
86 #ifdef __cplusplus |
86 #ifdef __cplusplus |
87 } |
87 } |
88 #endif |
88 #endif |
89 |
89 |