[CDBI] 2 Questions?

melo_am0 at sewanee.edu melo_am0 at sewanee.edu
Thu Sep 15 16:51:46 BST 2005


Hey guys-

Two quick things. Firstly, is CDBI thread-safe or do I need to wrap locks
around functions that call CDBI methods to prevent bad things (tm) from
happening?

Secondly, is there a safe way to have a constructor that's called each
time CDBI instantiates an object? I have a trigger set on before_create
and select, but sometimes a class's constructor is never called, and other
times the constructor is called twice.

Thanks in advance, and kudos to the authors of this module. It's an
amazing timesaver-

Andrew





More information about the ClassDBI mailing list