m-barthelemy / vapor-queues-fluent-driver

A Fluent implementation for https://github.com/vapor/queues (Vapor4)
MIT License
32 stars 16 forks source link

dbType property of FluentQueuesDriver is not used code #7

Closed thuotdwz closed 4 years ago

thuotdwz commented 4 years ago

While I was looking at issue #5 I also noticed The dbType of FluentQueuesDriver is not used by any code. It is also defaulting to .postgresql, which might cause confusion to developers who think they need to set the database id parameter.

Maybe dbType parameter should be removed from the constructor of FluentQueuesDriver ?

Thank you!

m-barthelemy commented 4 years ago

Thanks for the feedback! dbType is used to initialize FluentQueue, and later to select the exact SQL to send to the database driver. But I agree that the way it's currently done is confusing. I'll make an update soon and will hopefully do a bit of cleanup there.

m-barthelemy commented 4 years ago

Ok I saw what you meant, thanks for reporting this! Cleanup done in https://github.com/m-barthelemy/vapor-queues-fluent-driver/tree/0.3.6