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
Instead of making the user call the method createTable(), the library could check if the table exists once connected and then call this function internally if not.
awaitox.createTable()
The text was updated successfully, but these errors were encountered:
No, I don't see anything wrong with create table if not exist, rather this is a safe and good programming.
About auto checking, Yes, it will be a good thing to do that.
Also, it would be nice if, we can pass a connection to the new Oxen() constructor. Most of the time, projects that would be using this library would already have a connection setup to the MySQL DB, so it's will be quite nice and effective if the same connection could be reused rather than creating a new connection to the DB.
Instead of making the user call the method
createTable()
, the library could check if the table exists once connected and then call this function internally if not.The text was updated successfully, but these errors were encountered: