ThreeLetters / SuperSQL

A light, efficient and powerful php sql database framework. Allows you to quickly and securely develop anything using sql databases.
https://threeletters.github.io/SuperSQL/
MIT License
13 stars 5 forks source link

Error Handling? #9

Closed segg21 closed 6 years ago

segg21 commented 6 years ago

If no error handling or proper exceptions, how will I know if my database connection failed or not, besides sending a query testing if it failed?

Andrews54757 commented 6 years ago

@LegitSoulja What are you talking about? If there is an error, then new SuperSQL() will fail and give an error. You can use a try catch statement to catch that.

segg21 commented 6 years ago

@Andrews54757

Reason why I asked is because in docs/examples there was no checks made. You just connected and sent a query.

I asked because I didn’t see no custom exceptions, or your own try/catches in code and I never used PDO before.

Only reason why I am using SuperSQL instead of mines is because I am making a project for others and not all support mysqli.

But thanks for letting me know. I wanted to make sure before I started using it.