I need to test whether various types of database objects exist in a given database, and I don't know how to formulate these tests in Firebird SQL. Each test has the form "Does object of type X with name Y exist?". For example, I need to test whether a table with a given name exists. The object types I need to test are:
- Table
- View
- Domain
- Trigger
- Procedure
- Exception
- Generate
- UDF
- Role
One can find how to query for a given table on the Internet, but the other types are more difficult to find ...