mariuz / flamerobin

FlameRobin is a database administration tool for Firebird RDBMS. Our goal is to build a tool that is: lightweight (small footprint, fast execution) cross-platform (Linux, Windows, Mac OS X, FreeBSD) dependent only on other Open Source software
http://flamerobin.org
MIT License
216 stars 67 forks source link

Separate the triggers in 2 nodes: "Triggers" and "Database Triggers" #48

Closed luronumen closed 3 years ago

luronumen commented 4 years ago

Please separate the triggers in 2 nodes: "Triggers" for table triggers and "Database Triggers" for the database triggers (See RedExpert tool as reference):

RedExpert

Jdochoa commented 4 years ago

I'm separated DB Trigger, DDL Trigger and Trigger, but can't generate script for DDL Trigger because rdb$types not defined this rdb$trigger_types See https://github.com/Jdochoa/flamerobin/tree/FB3

arvanus commented 4 years ago

Just to congrat @Jdochoa image It's looking great!

luronumen commented 4 years ago

My suggestions is:

Here the full list:

Here is the Red Expert as reference:

RedExpert

PizzaProgram commented 4 years ago
* Hide **System tables** and **System domains**
PizzaProgram commented 4 years ago
* Rename _Generators_ to **Sequences**

After 20 years of working with FireBird > It would be a pain looking for "Generators" in the list, but not finding them. But maybe it would be OK, to enhance it: GENERATORS / SEQUENCES or: GENERATORS (SEQUENCES)

Maybe later there would be an option at the global-settings of FlameRobin: [ x ] "Use the word "sequence" instead of generator.

if someone is checking that >> everything would be replaced visually. But that would also create lot's of problems. (Like: opening an old DB, or someone is trying to write "create sequence ...", also the auto-script system...)

PizzaProgram commented 4 years ago
* Add **Indexes** node

That's a great idea! :+1:

PizzaProgram commented 4 years ago

I'm separated DB Trigger, DDL Trigger and Trigger...

@Jdochoa Why not putting them in a SUB-tree folder ? (And create +1 folder in the 1. place to show ALL.)

[-] Triggers
   [-] ALL Triggers
      CONN1_TR
      ...
   [+] Database Triggers
   [+] DDL Triggers
   [+] Table Triggers

So everyone would see ALL, making it easy to find one by name in ABC order.

Separating them so "far from each other" makes much more difficult to find ONE trigger by name! (Also, at first sight nobody can see there are more folders that would normally need somehow "stick together".)

By default > if you click [+] sign next to the Main folder >> the "ALL Triggers" sub-tree should auto-open to show ALL.

If it's too difficult to make sub-sub tree-folders, at least rename them, so these be sorted after each other: TRIGGERS - ALL TRIGGERS for Database ...

arvanus commented 4 years ago

Just my thoughts: I liked this idea:

[-] Triggers
   [-] ALL Triggers
      CONN1_TR
      ...
   [+] Database Triggers
   [+] DDL Triggers
   [+] Table Triggers

Maybe I would just change the subfolder pattern, you don't need to reinforce that "All" , "Database", "DDL" and "Table" refers to triggers, they are already inside triggers, doesn't change a lot, but "less is more" ;)

[-] Triggers
   [-] ALL
      CONN1_TR
      ...
   [+] Database
   [+] DDL
   [+] Table

I agree with Rename FunctionSQLs for just Functions, but maybe for now, keep like this because "Functions" where used for UDFs and this kind of changes goes easy for a bug/miss-renaming or something like that if you don't take care enough

System Tables exists from along time, I disagree with removing it ... for now, it's it :) Thanks for your effort helping Flamerobin

Jdochoa commented 4 years ago

Hi all

- Hide System tables and System domains: This is configurable in preferences database. imagen

- Add Indexes node: It's a good idea, I'll work on it - Rename FunctionSQLs for just Functions: I agree. - Put them in a SUB-tree folder: I agree. - Rename Global temporary tables for just Global Temporaries: I agree, i change it. - Rename Generators to Sequences: I'm not sure. I'm think we should keep backward compatibility with FB and FR.

luronumen commented 4 years ago

Hi @PizzaProgram , @arvanus and @Jdochoa

Let's leave GENERATORS for now instead of SEQUENCES. We think better about this change in the bug #54

For a better organization of the triggers we can do as PizzaProgram suggested:

[-] Triggers [+] Database [+] DDL [+] Table

Best Regards, Luciano

luronumen commented 3 years ago

Retest result on FlameRobin 0.9.3.8 Snapshot: Passed!

Thank you very much for the fix!