grate icon indicating copy to clipboard operation
grate copied to clipboard

Table casing

Open cocytus opened this issue 2 years ago • 5 comments

Add option to use lowercase table names.

cocytus avatar Sep 14 '22 06:09 cocytus

Fixes #245

cocytus avatar Sep 14 '22 06:09 cocytus

Thanks a lot for your contribution, @cocytus !! This is of course one way of solving this issue. I'd just like to have your opinion on my comments here https://github.com/erikbra/grate/issues/245#issuecomment-1247301636 before I merge this. I try to be a bit conservative with adding new command-line options, as there are already very many, and if this is really a workaround for a bug(ish), I want to consider other options as well.

What do you think of the suggestion of not enclosing the table names in quotes when creating the grate tables for PostgreSQL? Would that work too?

erikbra avatar Sep 14 '22 21:09 erikbra

Hei,

Please take a look at the updated PR code. This "works on my machine" :-) I don't have docker, so only a few of the tests actually works.

cocytus avatar Sep 21 '22 06:09 cocytus

About the failed tests: Unsure why that happens? On first glanse it seems unrelated to my PR. I rebased on latest main, hope you can retrigger the workflows.

cocytus avatar Oct 01 '22 19:10 cocytus

I'm not sure why the tests fail either, I'll try to run the tests on "main" to see if they fail too

erikbra avatar Oct 01 '22 21:10 erikbra

Abandoning this in favor of #256

REALLY sorry for the long time it has taken me to get around to do the last 20% of this, @cocytus. I didn't mean to disrespect your efforts here, and in addition, refuse to finish my own work doing the same in a different way.

I hope I haven't scared you away from creating PRs to grate (although I respect and understand if I have 🤕 ).

Anyways, the feature should be on its way out in the next grate release. Hope to release it in the next few days.

erikbra avatar Jun 03 '23 19:06 erikbra