Under Review: Created a new method to help with issue 397
License and Copyright Notice
By submitting this issue or commenting on this issue, or contributing any content to this issue, you certify under the Developer Certificate of Origin that the content you post may be licensed under GPLv3 (for code) or CC-BY-SA 4.0 International (for non-code content).
Branch Name
issue_397_verify_connection_to_database
Related Issues
Description
By creating a method to help check to see if there is a valid connection or not, a method was created called "isConnected()" I'm thinking it can help aid with when a local database is created.
Steps to Test
Calling isConnected should show either true or false depending on the connection status.
Relevant Screenshots
None to note.
Relevant Logs
Developer Notes
(List any notes you have about what you did here using bullets, for ex:)
- Right now this is one idea. As stated above, I was thinking of code somewhere along the lines of
- if (isConnected())
- {
-
// Code to write to database
- } else
- {
-
//Code to write to local database
- }
Edited by Darci Burdge