bigpresh / Dancer-Plugin-Database

Dancer::Plugin::Database - easy database support for Dancer applications
http://search.cpan.org/dist/Dancer-Plugin-Database
37 stars 36 forks source link

Made named connections inherit their charset from the default(unless cha... #59

Open esyphelon opened 9 years ago

esyphelon commented 9 years ago

Changed the way named connections apply their settings to inherit the default connection's charset.

bigpresh commented 9 years ago

Sorry for the slow reply - this looks good, thanks! However, I'm wondering if it should be more generic, and copy everything from the top level (except the 'settings' key), as it may also be desirable for e.g. dbi_params, handle_class etc to inherit. Need to have a bit more of a think, but I'd welcome your opinions too.

@ambs what do you think also?

ambs commented 9 years ago

Indeed, some more inheritance might be good. Probably we can help @esyphelon preparing the list of keys we think should be preserved?

bigpresh commented 9 years ago

On Mon, 19 Jan 2015 02:01:05 -0800 Alberto Simões notifications@github.com wrote:

Indeed, some more inheritance might be good. Probably we can help @esyphelon preparing the list of keys we think should be preserved?

Off the top of my head, I would say:

That way, everything inherits, and future settings will automatically inherit without having to remember to add them to the list.

Does that seem to make sense? I'm only part way through my first coffee, so I may have missed something obviously stupid about the above :)

ambs commented 9 years ago

It makes sense, but I haven't a coffee yet :-)