You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recommend creating a Database class (that would also be a singleton). It would be used to handle all database manipulations and have methods that would encapsulate the Select, Update and Delete operations of a database and return the desired result.
This class would also catch the exceptions relative to database malfunction.
With such a class, the database connexions would be handled more smoothly and if would avoid to manually put a try/catch at every SQL request in the server code.
The text was updated successfully, but these errors were encountered:
I recommend creating a Database class (that would also be a singleton). It would be used to handle all database manipulations and have methods that would encapsulate the Select, Update and Delete operations of a database and return the desired result.
This class would also catch the exceptions relative to database malfunction.
With such a class, the database connexions would be handled more smoothly and if would avoid to manually put a try/catch at every SQL request in the server code.
The text was updated successfully, but these errors were encountered: