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

feat(mongo): add "loadFixtures" action #653

Merged
merged 1 commit into from
May 3, 2023
Merged

Conversation

Thiht
Copy link
Contributor

@Thiht Thiht commented Apr 13, 2023

It works roughly the same as the dbfixtures executor. I wanted to implement it directly in dbfixtures but it's too tied to database/sql so it doesn't work well with Mongo

Note that I used yaml.v3 instead of v2, because v2 unmarshals yaml objects as map[any]any instead of map[string]any, it's too hard to deal with when inserting in Mongo

It works roughly the same as the dbfixtures executor.
I wanted to implement it directly in dbfixtures but it's too tied to database/sql so it doesn't work well with Mongo

Note that I used yaml.v3 instead of v2, because v2 unmarshals yaml objects as map[any]any instead of map[string]any, it's too hard to deal with when inserting in Mongo

Signed-off-by: Thibaut Rousseau <thibaut@crew.work>
Copy link
Member

@yesnault yesnault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@yesnault yesnault merged commit 228431b into ovh:master May 3, 2023
1 check passed
ivan-velasco pushed a commit to ivan-velasco/venom that referenced this pull request Sep 20, 2023
Signed-off-by: Thibaut Rousseau <thibaut@crew.work>
Signed-off-by: Ivan Velasco <ivan.velasco@socotra.com>
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