Review changes in source code
Everything that you write in the editor is saved as the local version of the object source code. You can examine all changes that are not committed in the Database Changes tool window.
The Database Changes tool window displays changes in source code of objects before you commit them. GoLand tracks changes only for objects that store their source code in the database. For example, triggers, procedures, functions, views, and other objects.
See the diff between modified and stored versions
In the Database Changes, double-click any database object.
When you edit source code of any object, GoLand tracks changes and highlights them in the gutter. For example, add a comment line to a routine or a trigger function. The added line becomes highlighted. If you click the highlighted line in the gutter, a small toolbar is displayed with the Show Diff button. You can click the Show Diff button () to see the difference between the code that you added and the one from source code.
Load source code for a data source
In the Database tool window ( ), click the Data Source Properties icon . Alternatively, pressShift+Enter.
Select one or more data sources for which you want to download source code.
Right-click the selection and navigate to. You can select between the following options:
None: do not download source code.
Except System Schemas: download source code for all the objects except for system schemas.
All Schemas: download all the available source code.
Controls of the Database Changes tool window
Submit local changes to the database server. SeeSubmit changes to a database.
Roll back changes.
Compare two versions of source code.
Group objects according to their type. For example, routines, rules, or views.
Expand all nodes in all trees.
Collapse all nodes in all trees.