enhancement: Redshift#34
enhancement: Redshift#34kndndrj merged 43 commits intokndndrj:masterfrom MattiasMTS:mattias/feat-redshift
Conversation
|
Hey @MattiasMTS thanks for the contribution! The changes look nice - don't worry about fomatters (for bash I used something different - The only thing which I'd like to ask you is that I just prepared a PR for database switching, so I'd like to ask you to revisit this PR once that is merged (I'll try to ping you here) It shouldn't be too complicated, but I expect a few merge confilicts. |
Sounds great! I had a gut feeling this was coming up, hence the draft PR. I'll hold and rebase after you've merged database switching. Until then I'll pick up something in the backlog/issue. Thanks for fast response! :) |
|
Here it is. I merged into master.
whoa, nice :) Also feel free to ask questions, I'd be happy to help :) |
Sweet. I'll take a peak and rebase. 😋 |
- improve json marshaling and add schemaless support - improve mongo and redis output support
|
This should now be ready for "real review". Thanks for the initial feedback @kndndrj ! I addressed the rebasing issues, main thing was the new list helper method which in this case needed to accept the vars argument that the helper:get uses as well in order to list the option difference for e.g. VIEW, TABLE, etc. Perhaps worth to add e.g. "Functions" here in the future.
|
|
I did a quick review from my phone, and overall I like the changes - reminds me of some stuff that I forgot to clean up myself. I'd still like to take a closer look when I have some time though. Thanks for the contribution and a detailed overview :) |
|
Looking forward to it! Thanks for awesome response and feedback during these PRs 😄 |
|
I'll add this as a reminder to myself to actually reconsider using the redshiftdata api https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/redshiftdata rather than using the |
kndndrj
left a comment
There was a problem hiding this comment.
Thanks again for submitting this PR and sorry that it took me so long to do a propper review.
I'd be really thankful if you address the changes, so we can merge this cool feature!
| @@ -4,37 +4,44 @@ | |||
| set -e | |||
There was a problem hiding this comment.
Nice of you that you want to format the script, but it was formatter with a different formatter already 😅
I think we can remove these changes if you agree.
There was a problem hiding this comment.
Deleted the commit. Totally agree. Is it worth adding some pre-commit-config in the future? 😋
There was a problem hiding this comment.
It would make sense, yeah. although I'm not the most familiar with those configs. If you want, you can come up with something
This reverts commit 36fb188.
kndndrj
left a comment
There was a problem hiding this comment.
Except for the 2 minor nitpicks, I think the PR looks fine now.
I'll do a quick test and merge it today or tomorrow. Thanks again!
dbee/conn/history.go
Outdated
| } | ||
|
|
||
| func (r *HistoryRows) SetCustomHeader(header models.Header) { | ||
| // no-op |
There was a problem hiding this comment.
Are these methods an artifact of the deleted interface?
lua/dbee/handler/conn.lua
Outdated
| ---@param children _LayoutGo[] -- children to sort | ||
| ---@param field string -- field to sort by | ||
| ---@param ascending bool -- set to true to sort ascendingly | ||
| local function sortChildrenByField(children, field, ascending) |
- clean up postgres/redshift layout getter - small cleanup
|
thanks for the contribution. I tested some stuff and fixed what didn't work and added some extra stuff. |
👷 What has changed 👷
The focus of this PR is to open up this awesome plugin for Redshift users!
I'm opening this PR as a draft for early review. I'll push some more changes with respect to tests, documentation, etc
Redshift
VIEWSVIEWSandTABLESLayout
Logging
Extended the logging library with formatted functions and refactored a few use cases where this was needed.
Bash
I've
shellfmtas formatter on nvim and I was inbuild.sh, which led to the formatted version. Let me know if you want me to revert this. Perhaps it is more worth adding apre-commit-config.yamlto fix this for future stuff. We can add more configs with respect tosh,go,lua, etc.