4. Object editors

4.1 Table editor

Double-click a table (or right-click > Edit table...). The header shows the object type, connection and database path; Refresh reloads and Close closes the tab.

Table structure

Table structure

Tab Content and commands
Structure Fields in table order with position, type (lengths in characters, as declared: VARCHAR(12) also on UTF8 databases), domain, NOT NULL, PK/FK, default, character set and collation. New field, Edit field, Drop field, Move up/down (reorders fields), Comment (field description)
Data Table data with Where, Order by, Max rows, Apply and Count rows. Same grid as the SQL editor: editing, record view, export
Indexes Indexes with fields, unique, inactive, order (ASC/DESC) and expression of computed indexes. New index, Activate, Deactivate, Statistics (recompute selectivity), Drop index
Constraints Primary key, foreign keys, unique, check and not null constraints. New constraint, Drop constraint
Triggers Triggers grouped by event (Before/After Insert/Update/Delete) with a code editor. New trigger, Compile, Revert, Activate, Deactivate, Drop trigger
Dependencies Objects that use the table (views, procedures, triggers, checks) and the fields involved, with the object types by name
DDL A runnable script (SET TERM ^) generated like Extract metadata: CREATE TABLE with types, character sets, defaults and NOT NULL, computed fields, primary/unique/foreign keys and checks, indexes, triggers and comments. Domains, generators and routines used by the table are not included. On InterBase a simplified CREATE TABLE is shown; Copy
Delphi record A Delphi record declaration matching the table (each field with its SQL type as a comment), handy for application code
Description Table comment (COMMENT ON TABLE)
Table data

Table data

Indexes

Indexes

Constraints

Constraints

Triggers

Triggers

Dependencies

Dependencies

DDL

DDL

Delphi record

Delphi record

4.2 View editor

The view editor has the same tabs as the table editor (Structure lists the view columns; PK and FK are empty), plus View source. The DDL tab shows CREATE OR ALTER VIEW, the view triggers and comments. In View source edit the SELECT and press Compile view. Compilation errors highlight the line in the editor; Revert restores the stored source.

View editor

View editor

4.3 Procedures, functions and triggers

The code editor shows the complete CREATE OR ALTER statement. Edit it and press Apply DDL; Revert reloads the source from the database, Copy copies it.

Procedure editor

Procedure editor

The Parameters tab lists the input parameters, then the output parameters, with direction (in/out), type, NOT NULL, default and domain; Dependencies lists the objects used by the routine.

Procedure parameters

Procedure parameters

Right-click a routine > Create call prepares the call (EXECUTE PROCEDURE or SELECT * FROM for selectable procedures) with a named parameter per argument.

4.4 Domains, exceptions and generators

Domains and exceptions open an edit dialog. Changes are shown as SQL before they are applied.

Domain dialog

Domain dialog

Double-click a generator (sequence) to see its current value and set a new one.

Generator value

Generator value

4.5 Users, roles and privileges

On Firebird 3 and later the tree also shows Users and Roles. From the context menu you can create, edit and drop users, create roles and grant them. Privileges... on a table, view, procedure, role or user opens a tab with the current grants, Grant... and Revoke commands and Copy script.

Description... sets the comment of any object.