lightster / hodor

🚪 A worker queue that is evolving to a job queue
MIT License
4 stars 1 forks source link

Abstract PgsqlAdapter into smaller adapters #186

Closed lightster closed 8 years ago

lightster commented 8 years ago

Introduce new Hodor\Database\Adapter\Postgres classes to break down PgsqlAdapter into smaller classes that each have less areas of responsibility than the original monolithic-like class.

Going forward this will allow us to pass a specific DB adapter object and a specific MQ adapter object to a worker (i.e. buffer worker, superqueue worker, job worker, dequeuer worker) object and more adequately test the specific functionality of that type of worker.