The "Objects" tab lists what the database in use offers. It is filled as soon as a database is opened and describes the whole database, so it is the same for every query tab.
![[20260806-qtm-available-objects.png]]
The tree holds:
- the tables, views, table functions, synonyms, triggers, functions and procedures of every data container of the database;
- the PSQL packages of a data container and the functions in them, for the platforms that offer packages; see [[Packages]];
- the functions and procedures of the [[Invantive Data Cache|data dictionary]];
- the views of the data dictionary.
The tree only shows a level when it distinguishes anything: the data container is left out when the database holds one, and a catalog or schema is left out when it is unnamed or when there is only one of them. Selecting an object shows its description underneath the tree.
Double-clicking an object, or pressing Enter on it, puts it in the editor:
- On an empty spot in the editor a whole statement is inserted: a `select` for a table or view, and an `exec` for a function, a procedure or a package.
- Inside a statement only the name of the object is inserted, at the position of the cursor.
A table function is inserted with its parameters as placeholders. The name is qualified with the data container when the object is not in the container in use, and a `limit` is added when the platform needs one to keep the result workable.