how to show un-committed changes in a database table in datagrip

886 Views Asked by At

How can I run a statement in the sql query console in manual mode on datagrip and see their effect on the table locally in order to make sure it has the intended effect before committing it to the database?

3

There are 3 best solutions below

0
On BEST ANSWER

There is a context action "Preview update". (right click on statement > show context actions)

9
On

From DataGrip 2020.2 you can review the query that represents your changes in the data editor.

DML button is active if there are pending changes: DML Preview

0
On

See here the one highlighted in red "Preview Pending Changes", it will open the DML Preview modal. enter image description here