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

How do I seed multiple tables from a single file? #98

Closed
fr3fou opened this issue May 3, 2021 · 1 comment · Fixed by #130
Closed

How do I seed multiple tables from a single file? #98

fr3fou opened this issue May 3, 2021 · 1 comment · Fixed by #130
Labels

Comments

@fr3fou
Copy link

fr3fou commented May 3, 2021

Ideally I want to be able to do

# TestUserService_OnePost.yaml
users:
    - id: 2
      name: Joe
posts:
    - id: 1
      user_id: 2
      content: "hi"

The example in the README shows you have to make one file per table, what I want is to have individual files for each test case which contain all the necessary data for each table as shown in the example. Currently I've been using https://github.com/romanyx/polluter which does the job but isn't maintained. I'd like to migrate to this eventually.

@fr3fou fr3fou changed the title How do I seed multiple databases from a single file? How do I seed multiple tables from a single file? May 3, 2021
@andreynering
Copy link
Contributor

Hi @fr3fou,

That's not currently possible. And to be honest, I'm not sure we'd like to have this implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants