SQL - Helmut-Ortmann/EnterpriseArchitect_hoTools GitHub Wiki

SQL

Run an SQL script file from EA like

  • 'myScript.sql
  • 'c:\mySearches\myScript.sql'

Even update or insert is possible. SQL search per file together with all the other Search possibilities from one location with Autocomplete and Fuzzy search for your search.

//
// Show Diagram Items and their Object
//
select o.ea_guid AS CLASSGUID, o.object_type AS CLASSTYPE,o.Name AS Name,o.object_type As Type,
do.diagram_id, do.object_id, objectStyle
from t_diagramobjects do inner join t_object o on do.object_id = o.object_id
where do.diagram_id = #Diagram_ID#

There are a lot of macros to link to EA at your conveniences like:

  • <Search Term>
  • #Branch#
  • #CurrentItemID#
  • #ConnectorID#
  • etc.

Note: hoTools also supports LINQPad (not part of hoTools) and LINQ to SQL.

Find Search

Find and run arbitrary Search.

Find Search

SQL Editor

Own SQL Editor to support advanced features like macros and templates.

SQL Editor

hoTools SQL has the Search features I have missed in daily project work. There are Macros I missed in EA, Templates to start from, tabbed editing to quickly switch between SQLs and of course all the benefits of using files and using my beloved SQL Editor.

It's integrated in hoTools so you can:

Part of installation is a sql.zip file with a lot of example scripts. You can start with these or with elaborate SQL Templates. To quickly access EA Items you can choose from a wide range of SQL Macros. hoTools stores all SQL scripts as files.

Run SQL and output results in EA Model Search Window with Macros and <Search Term>:

Alternatives

If you like to combine the SQL like query language with the flexibility of a compiled .NET languange like C#, VB, F# you should concider:

Features

Tab Editing

Tabbed Editor. You may also use this as a separated EA Window (see SQL Settings)

tab Editing

Run SQL Query

Enter your <Search Term>, here 'XX', and

  • Use <Search Term> in your query like 'name = <Search Term>'
  • Run by
    • Click on Run Icon
    • 'Enter' in Text Field
    • CTRL+R (Run)
  • The results you show in the EA Model Search Window

Run SQL Query

Comment

// ---------------------------------------------
// This is my most worthy Query
// ---------------------------------------------

ToolTips guide you

Almost every input field has a detailed Tooltip. Just hover the Mouse over the field of entry. For most tasks, you don't need any Documentation or WiKi.

Tool Tips

Settings

see also: Settings SQL

Settings

References