...
By default, SQL statements executed with conn:execute{}
are only run when the component is executed outside the Translator’s editing mode. To override this behavior and execute the statement during script editing , use the you can use:
The Live Flag to set
live=true
. However, use this cautiously – each script change or use of sample data will trigger the SQL execution, potentially leading to multiple unintended INSERTs or UPDATEs.The
component.live()
API to control code execution in test and live.
Expand | |||||
---|---|---|---|---|---|
| |||||
Unlike conn:merge{}, which automatically handles transactions,
|
...