0
In my application I have a certain process to perform test. This involves database with multi tables. I wonder if it is possible to start a BEGIN;
make all manual development, and in case of error, perform a ROLLBACK;
.
Note: Remembering that they will be in separate moments, not in the same process, only with the same connection.
Example:
passo 1: "BEGIN;".
passo 2: processor manuais com form em html
passo 3: "ROLLBACK;" para re-teste;
I did not find many things about this kind of situation and mostly it was recommended to delete in cascade or validation in Javascript, which is not possible.
Very instructive Willian, however the structure of Frameword, does not allow persistent connection. And in your example, you used the Transaction standard, in which BEGIN is in the same process as COMMIT and ROLLBACK, which does not address my need for separate processes. But thank you so much for your help.
– Guilherme Lautert
nothing, tamos ae
– William Borba