connection.ping(reconnect = True)
Description
This method checks whether the database connection is available. If the connection is disconnected or unavailable, determine whether to reconnect to the database based on the parameter settings. If the reconnection fails, an error is reported.
Prototype
connection.ping(reconnect = True)
Parameters
|
Keyword |
Parameter Description |
|---|---|
|
reconnect |
Specifies whether to reconnect. The default value is True. |
Return Value
None
Examples
For details, see Examples: Common Operations.
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