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

Populate database with data set vararg #48

Closed
raderio opened this issue Dec 5, 2018 · 2 comments
Closed

Populate database with data set vararg #48

raderio opened this issue Dec 5, 2018 · 2 comments
Labels
Milestone

Comments

@raderio
Copy link

raderio commented Dec 5, 2018

In our use case we have predefined data sets, so we need to call

JDBDT.populate(predefinedUsers);
JDBDT.populate(predefinedEvents);
JDBDT.populate(predefinedPosts);

Maybe will be more useful to allow populate receive vararg of DataSet
populate(DataSet... dataSets)
so will be possible to call
JDBDT.populate(predefinedUsers, predefinedEvents, predefinedPosts)

@edrdo edrdo added this to the 1.1.3 milestone Dec 5, 2018
@edrdo
Copy link
Member

edrdo commented Dec 5, 2018

Yes this will be easy to add in the next release (1.1.3).
A workaround (for now) is easy of course:

 void populateVariousTables(DataSets ... dataSets) {
     for (DataSet ds : dataSets) { 
        populate(ds);
     }
 }

@edrdo edrdo added the feature label Dec 5, 2018
@edrdo
Copy link
Member

edrdo commented Dec 7, 2018

This issue is subsumed by #52.

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

No branches or pull requests

2 participants