Hi,
  I think I'm missing something simple.
  
  I may be getting bit by threads.
  
  The system I'm building is a database backed web application. 
Nothing particularly complex.

  I open a connection to the database using tdbc - this creates
a new command that I put in the global scope as '::db1'.

  A few minutes later, I hit a web page, and the command is gone.
  
  It's simple enough to re-create it, but I'm getting bored with
adding the 'is it still here' check to my code.

  Is there a way to open a persistent link?  Or am I getting caught by
a new thread being assigned to a session and the new thread has never
heard of any ::db1 command.

  Maybe I should drop the tdbc idea and move to dio...  My primary 
reason for using tdbc is that I'm not convinced that we won't be 
switching backends before we get out of prototype mode and tdbc seemed
like the simplest way to be server-neutral.

  Thanks for insights,
  Clif
  
-- 
... Clif Flynt ... http://www.cwflynt.com ... [email protected] ...
.. Tcl/Tk: A Developer's Guide (2nd edition) - Morgan Kauffman ..
.. 17'th Annual Tcl/Tk Conference:  2010,   Oak Brook, IL  USA ..
.............  http://www.tcl.tk/community/tcl2010/  ............







---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to