PQgetCancel
Function
PQgetCancel is used to create a data structure that contains the information required to cancel a command issued through a specific database connection.
Prototype
PGcancel *PQgetCancel(PGconn *conn);
Parameter
Keyword |
Parameter Description |
---|---|
conn |
Points to the object pointer that contains the connection information. |
Return Value
PGcancel points to the object pointer that contains the cancel information.
Precautions
PQgetCancel creates a PGcancel object for a given PGconn connection object. If the given connection object (conn) is NULL or an invalid connection, PQgetCancel will return NULL. The PGcancel object is an opaque structure that cannot be directly accessed by applications. It can be transferred only to PQcancel or PQfreeCancel.
Example
For details, see Example.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot