timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.16k stars 160 forks source link

Add transaction support on createJob, insert & fetch #341

Closed klesgidis closed 2 years ago

klesgidis commented 2 years ago

Summary

Enables user to be able to pass a db interface that implements the executeSql function

With this changes users are now able to pass their own DB which enables them to add a job inside a transaction

coveralls commented 2 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling fb985ee3acbf731ef2fbd62ab4bedd0aeeb5359d on klesgidis:transactions into dbd8f981b955f53ae503cc9cac6d835fa7bae33d on timgit:master.

timgit commented 2 years ago

Thanks!