On Wed, Aug 27, 2008 at 9:10 PM, baldtrol <[EMAIL PROTECTED]> wrote: > > Just using the SA Table object is a great solution, and one I should > have thought of :) However, I didn't, so thanks for the thought! > Another question on the topic... does setup_all() detach and then > reattach anything on the mysqldb connection level, or the instances of > all the Entity classes into/out of memory when called a second or > third time, or does it just check to see what's connected already, and > connect anything that's not?
Hell no. Setup_all "just" create mappers and table objects for your entities. If you call it several times, it does its job for those entities which are not already setup. If an entity was already setuped (has already a mapper and table), it's simply skipped. -- Gaƫtan de Menten http://openhex.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
