Using "restore points" #3518
-
Hi all I'm thinking on a special use case, can someone tells me if it's possible or not... I should use a BDD software (namely PHP Behat) to start functional tests on my website like, for instance, go to some page and do stuff like adding a new user then do a login with that user and f.i. create a new blog item in a given category. So, in short, the database will be updated (add, update or delete) when running the test. Once my test is validated, I wish to be able to reset my database and start another tests. This is the job of Behat... What concern postgrest, can I "create a restore point" before each test I'll fire and once the test is done, reset the database ? Is there special api endpoints for this ? I think to postgrest because before tests, I'll also need to call api for preparing the db like already create some users, blog categories, and so on. Many, many thanks for your advices. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
|
Beta Was this translation helpful? Give feedback.
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:
db-tx-end
.