Triggers

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
sandeep_c24
Expert Boarder
Expert Boarder
Posts: 158
Joined: 06.11.2005, 01:43

Triggers

Post by sandeep_c24 »

Hi Mark

There seems to be no way of getting Triggers using TZSqlMetadata. Following is the TZMetadataType declaration and there is no mention of Trigger. Should this be extended to support Triggers?

Code: Select all

  TZMetadataType = (mdProcedures, mdProcedureColumns, mdTables, mdSchemas,
    mdCatalogs, mdTableTypes, mdColumns, mdColumnPrivileges, mdTablePrivileges,
    mdBestRowIdentifier, mdVersionColumns, mdPrimaryKeys, mdImportedKeys,
    mdExportedKeys, mdCrossReference, mdTypeInfo, mdIndexInfo, mdSequences,
    mdUserDefinedTypes);
Regards

Sandeep
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

It could be, but maybe they are already returned as Procedures by some database servers. But even then, a 'mdTriggers' option could be usefull.
Can you design a resultset structure?

Mark
Image
sandeep_c24
Expert Boarder
Expert Boarder
Posts: 158
Joined: 06.11.2005, 01:43

Post by sandeep_c24 »

I propose following structure

1. Trigger Name
2. Table Name
3. Trigger Source
4. Active (I think this is only in Firebird)
5. Event

I am not sure if event should be selected as a separate column.

What do others think?

Regards

Sandeep
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Event may be difficult to extract depending on the database. On the other hand, if it's possible it's nice to have separately. I would say: go for it.
Image
Post Reply