Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBs fxns #17

Merged
merged 20 commits into from
Jan 9, 2024
Merged

DBs fxns #17

merged 20 commits into from
Jan 9, 2024

Conversation

sckott
Copy link
Member

@sckott sckott commented Nov 7, 2023

@seankross take a look please.

note: instructions/examples with secrets in notion, see slack dm

This PR adds fxns for dealing with Redshift. There is a fxn for RDS, but it's not working yet so ignore that.

What do you not like about any of this? Any possible improvements?

#8

- stop within rds con fxn as not ready yet
- redshift con fxn changes: user/pwd required and no default, get other params from cluster id
- redshift create fxn: add security group, wait until available
- many helper fxns
- improved docs
@sckott sckott requested a review from seankross November 7, 2023 20:31
@seankross
Copy link
Collaborator

So cool, cannot wait to get this into people's hands.

@sckott
Copy link
Member Author

sckott commented Dec 5, 2023

Thanks @seankross - I'll work on the RDS function(s) and hopefully have it ready to review with the Redshift one when you get back

- new files for db stuff, separate files for redshift, rds and wait fxns
- add rds functions
- modify wait functions to use common plumbing with generator for each of redshift, rds
- now importing RMariaDB
- add misc file for database helpers
- add info() fxn to give back info on the newly created rds or redshift instance
- add tests for some of the db fxns
- rds: toggle which DBI driver loaded; and only check for the single DB driver pkg for the engine
- redshift: add info() usage in create fxn, and verbose param
- wait_until - add info about waiting on instance
@sckott
Copy link
Member Author

sckott commented Dec 11, 2023

Okay @seankross

You can now try spinning up RDS and Redshift instance, and connecting to them. See Notion private docs for notes.

R/database.R Outdated Show resolved Hide resolved
R/database-rds.R Outdated Show resolved Hide resolved
R/database-rds.R Show resolved Hide resolved
R/database-redshift.R Show resolved Hide resolved
@seankross
Copy link
Collaborator

@sckott sckott mentioned this pull request Jan 9, 2024
@sckott sckott merged commit c76a9b2 into main Jan 9, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants