Closed RiversPharmD closed 11 months ago
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.
Describe the feature
Add an additional argument to
generate_model_yaml
that toggles the.append
call between 'models' and 'seeds', likegenerate_mod_yaml(model_names=[], upstream_descriptions=False, seed=False)
Describe alternatives you've considered
I've considered writing a separate function to handle this, where you call
generate_seed_yaml
, but it would nearly identical togenerate_model_yaml
, and both functions would need to be updated.I am debating between the if/else statement setting a variable equal to
model
orseed
and then just having onedo
statement, or if the if/else statements should just call thedo
statement based on the input.Additional context
To my knowledge this is not database specific. I understand the push to not seed data, but I think that this is a low-lift implementation that would benefit end users that need to quickly introduce and document seeds to a model, rather than read in full tables.
Who will this benefit?
This will benefit people working with multiple seed files, who want to document their code and tables in a consistent manner.
Are you interested in contributing this feature?
Sure! I'll wait to fork the repo until this feature is supported, but happy to handle the first draft and revisions.