Skip to content

Using "restore points" #3518

Answered by wolfgangwalther
cavo789 asked this question in Q&A
Discussion options

You must be logged in to vote

This is not something that PostgREST can do. Also, I think it's pretty much out of scope for PostgREST.

That being said here are some ideas:

  • If you're ok with just making a single request and have that not modify the database, look into db-tx-end.
  • You could also create your "restore point" as a template database in PostgreSQL and then create new databases for each test case from that template. For this to work, you'll need to be able to restart PostgREST between every test case, connecting to the new database.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cavo789
Comment options

Answer selected by wolfgangwalther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants