changeset 25 | 99a41f48e29b |
parent 23 | 1dee73ae4ad0 |
--- a/src/evpq.h Sun Oct 12 14:57:06 2008 +0300 +++ b/src/evpq.h Sun Oct 12 20:10:47 2008 +0300 @@ -101,5 +101,11 @@ // convenience wrappers #define evpq_error_message(conn) PQerrorMessage(evpq_pgconn(conn)) +/* + * Release the evpq_conn, closing all connections and freeing all resources. + * + * You must call this yourself in all cases after evpq_connect returns an evpq_conn. + */ +void evpq_release (struct evpq_conn *conn); #endif /* EVPQ_H */