Dependencies in Data Models

Dependencies are displayed in Luna Modeler using specific lines between objects.
These can be created automatically using the Infer dependencies feature, or manually.

Dependecy lines in Luna Modeler - data modeling tool

How to detect dependencies in your data model

Automatic dependency detection is based on scanning the code of objects such as views, functions, stored procedures, etc. Once the name of another object is found in the code, a dependency line is created.

To start detection, click the Advanced button on the main toolbar and select Infer dependencies

A screenshot showing how to detect dependencies in data models created in Luna Modeler

or right-click on the diagram canvas and select Advanced -> Infer dependencies from the context menu.

Context menu and the option to start detection of dependencies in Luna Modeler.

Automatically created dependency lines will be displayed in the diagram.

Data model with a visualization of dependencies. Create in Luna Modeler.

How to create a dependency line manually

Dependency lines can be added to the diagram manually to any object. This can be ENUM in models for PostgreSQL, etc. It is also possible to create a dependency line to indicate a specific dependency between tables or to create a dependency to text or a note.

To add a dependency line, simply create a new line and change the line style from classic to dependency in the properties.

Line creation.

Line properties:

Line properties.

How to show or hide dependency lines

The number of dependencies can be quite extensive, and a diagram showing both relationships and dependencies can become less clear. Therefore, you have the option to show or hide all dependency lines at once.

To show or hide dependency lines, simply toggle the option in the Display menu. Similarly, you can choose whether to show dependency captions and whether to animate relationship lines and dependencies.

Main toolbar and the possibility to display or hide all dependencies, dependency captions and animations.

Deleting all dependency lines

If you do not want to have dependencies in your model, you can easily delete them. Right-click on the diagram and select Advanced -> Delete dependencies. This operation will delete all dependency lines, both automatically detected and manually created.

Context menu with the option to delete all dependencies at once.

Working with the Dependencies layout

If you are more interested in dependencies, you can use the Dependencies layout, which arranges objects in the diagram so that greater weight is placed on dependencies than on relationships.

Luna Modeler and the Dependencies layout.

Dependencies in HTML reports

Information about dependencies is also displayed in generated HTML reports, both in a separate section and in the details of a table or other object.

Dependency details in HTML report generated by Luna Modeler data modeling tool.

#

DATA MODELING TOOLS
DRAW Diagrams and
GENERATE Scripts
Download data modeling tools
Blog Categories
Blog by Platforms