-
Notifications
You must be signed in to change notification settings - Fork 226
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
Programmatic Usage #440
Comments
And I just discovered #215 |
I read through https://github.com/benbjohnson/litestream-library-example/blob/main/main.go and it's sort of complex - is there any interest in creating a friendlier API for this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I couldn't find an existing issue asking this - is there a way to consume this programmatically? On some app platforms, one can point to a code base and have it automatically built and deployed. In this case, you can't use litestream, but if you're writing a Go-based app then you could import it and do a restore on app startup, and run periodic backups in a goroutine.
As a workaround, one could build a docker image that had litestream in it, but it can be more attractive to use it in-process in the example above.
Apologies in advance if this is already addressed elsewhere.
The text was updated successfully, but these errors were encountered: