Closed tgulacsi closed 6 years ago
Thanks! I have to clean up code, and write tests before adding other database support since it is really messy right now (and yeah, tests are not really testing anything...). I'll let you know when it's done, and if you are still willing to send pr at that moment, I'll be more than welcome to merge it.
Plus, it'll be nice if we can discuss how to integrate multiple database support on issue comment or somewhere, before actually coding the feature :)
I've written this first 'cause I need Oracle support, second to see where it needs some tweaking to support other databases. For general, this is some kind of query registry as different databases stores metadata differently, and to let the user declare the target db type in the connection string; for oracle specifically, I needed to downgrade the booleans to plain ints.
Tests can be done multiple ways:
As Oracle is quite a heavy and niche DB, I've hidden it under "oracle" tag, so it's not included by default. Maybe the other not-so-common or needs-heavy-deps databases should be hidden behind such tags, too.
I'm not sure about the changes in PostgreSQL queries (change of bool to int), but don't have pg at hand...