Skip to content

persistent-sqlite: support for database backup #172

Closed
mikesteele81 opened this Issue Oct 11, 2013 · 5 comments

3 participants

@mikesteele81

Would you accept a pull request to add support for Sqlite's backup api to persistent-sqlite?

I'd like to provide an online save/restore feature to a Yesod application. It seems this might be possible if we had Database.Sqlite.load and Database.Sqlite.save functions.

@gregwebs
Yesod Web Framework member

It probably makes sense to see if you can start this as a separate module, but we aren't necessarily opposed to including database specific functionality in the database modules.

@snoyberg
Yesod Web Framework member

I'm not even aware of the backup API, would you mind sharing a link to it? And I have no objection to such a pull request.

@mikesteele81

http://www.sqlite.org/backup.html

It's a small handful of functions that lets us copy live data without locking the file.

@gregwebs gregwebs added the Sqlite label Aug 4, 2014
@gregwebs
Yesod Web Framework member

closing for now, still looking forward to a pull request.

@gregwebs gregwebs closed this Aug 29, 2014
@mikesteele81

I ended up not needing this feature at the time. Maybe someday I'll come back to it. Congratulations and thanks for 2.0 release, by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.