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

Allow fixtures to execute rust code #972

Open
DenuxPlays opened this issue Nov 8, 2024 · 1 comment · May be fixed by #1061
Open

Allow fixtures to execute rust code #972

DenuxPlays opened this issue Nov 8, 2024 · 1 comment · May be fixed by #1061
Labels
enhancement New feature or request

Comments

@DenuxPlays
Copy link
Contributor

Feature Request

Is your feature request related to a problem? Please describe.

Currently I need to parse a CSV file and generate IDs on the go which I cannot do in yaml files because their are static.

Describe the solution you'd like

Would be great if we have a new method named like seed_by_function that takes a function instead of a path.

Describe alternatives you've considered

This can sometimes be moved into the migrations crate but as the migration crate has no access to generator, factories etc. it isn't a viable option for everything.

@DenuxPlays
Copy link
Contributor Author

I am working on a pr for this.

@DenuxPlays DenuxPlays linked a pull request Dec 7, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant