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

Ability to use database backup? #10

Open
manosbatsis opened this issue Feb 27, 2018 · 4 comments
Open

Ability to use database backup? #10

manosbatsis opened this issue Feb 27, 2018 · 4 comments

Comments

@manosbatsis
Copy link

postgresql-embedded allows the use of a dump file. Does the plugin allow using a database dump or pgadmin backup in the current version?

@slavaz
Copy link
Owner

slavaz commented Feb 27, 2018

Well... in general, no, the plugin doesn't allow to apply any dump files.

Usually, I use Liquibase + DbUnit, so creating a DB structure and filling by some test data are processed in other way...

But you have good point here, because it may be a case with previously created users, for example. In this case even Liquibase may fail because changesets may contain some kind of GRANT/REVOKE commands with the predefined user...

So, I'll try to implement the feature in near time.

Thanks!

@manosbatsis
Copy link
Author

I use Flyway instead of Liquibase, but creating SQL migrations out postgres data is a series of pain, including file format, file spiting to avoid github file size limits etc. If i wanted to implement this, what would be the necessary changes you'd point to/agree with?

@slavaz
Copy link
Owner

slavaz commented Feb 28, 2018

@manosbatsis : Do you have ability to compile & check a code from the branch: #12 ?

@manosbatsis
Copy link
Author

Sorry, missed this. I actually tried adding importFile and restoreFile properties to the plugin a couple of days ago and according to the examples of postgres-embedded, see my fork here: manosbatsis@6c8295e

The latter however does not seem to work, probably needs the right combination with dbName and/or pg_dump options, but haven't found time to add a test and explore the issue further.

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

No branches or pull requests

2 participants