Hello

I am new on this list. First of all I think empire-db is a framework which does 
a good job without
overuse of annotations (in fact it does not use them at all).

I have some questions regarding use of empire-db in multithreaded environment 
(in example in a service layer of a web server)

1 Is DBDatabase (and related DBTable, DBColumn) thread-safe? I mean that only 
one instance of database model exists and
it may be acessed by multiple threads. I also assume that DBCommand, DBRecord 
are created locally in functions.

2 DBDatabase must be opened before use by call of open(driver,connection). What 
to do if application creates/uses multiple
connections? Should DBDatabase be reopened on every connection or it is enough 
to open it only once.

Regards
Leszek Piotrowicz

Reply via email to