Subject | Re: [Firebird-Architect] On connect/disconnect trigger |
---|---|
Author | Martijn Tonies |
Post date | 2006-06-02T05:52:05Z |
Dmitry,
There are different triggers:
DML triggers (which is what we have)
DDL triggers (eg: create ddl trigger on create table)
and database/schema triggers.
The latter would be be what we're talking about.
Given that a certain action still "triggers" the routine, I'd say the name
is
just fine.
Also given the consistency with other systems.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> Would it be architectually correct and feasable to putBut
> > a trigger on connection/disconnection to a database?
>
> Yes, I think so. And this is registered in our feature request tracker.
> I'm not sure I like the term "trigger" in this context. Such an object hasautomatically
> enough semantical differences from a regular trigger. It doesn't have
> OLD/NEW contexts, it doesn't make sense to have before connect/after
> disconnect triggers, etc. For me, it's just a procedure that's
> executed by the engine in the autonomous transaction. I'd rather call itan
> event handler, but it may cause confusion with the existing eventsFYI, other DBMS systems call them triggers.
> mechanism.
There are different triggers:
DML triggers (which is what we have)
DDL triggers (eg: create ddl trigger on create table)
and database/schema triggers.
The latter would be be what we're talking about.
Given that a certain action still "triggers" the routine, I'd say the name
is
just fine.
Also given the consistency with other systems.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com