Auto check and create job table
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.
await ox.createTable()
That's interesting... is there much of a cost to calling
CREATE TABLE IF NOT EXISTS oxen_queue
for every instance of Oxen?
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.