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. AppCode 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 tool window, double-click a database object.
When you edit source code of any object, AppCode 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 .
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. See Submit changes to a database.|
|Roll back changes. This button is available only for the manual transaction mode.|
|Show Diff||⌃D||Compare two versions of source code.|
|Group by||⌃D||Group objects according to their type. For example, routines, rules, or views.|
|⌃+||Expand all nodes in all trees.|
|⌃-||Collapse all nodes in all trees.|