src/evpq.h
changeset 25 99a41f48e29b
parent 23 1dee73ae4ad0
equal deleted inserted replaced
24:82cfdb6680d1 25:99a41f48e29b
    99 const PGconn *evpq_pgconn (struct evpq_conn *conn);
    99 const PGconn *evpq_pgconn (struct evpq_conn *conn);
   100 
   100 
   101 // convenience wrappers
   101 // convenience wrappers
   102 #define evpq_error_message(conn) PQerrorMessage(evpq_pgconn(conn))
   102 #define evpq_error_message(conn) PQerrorMessage(evpq_pgconn(conn))
   103 
   103 
       
   104 /*
       
   105  * Release the evpq_conn, closing all connections and freeing all resources.
       
   106  *
       
   107  * You must call this yourself in all cases after evpq_connect returns an evpq_conn.
       
   108  */
       
   109 void evpq_release (struct evpq_conn *conn);
   104 
   110 
   105 #endif /* EVPQ_H */
   111 #endif /* EVPQ_H */