On 4/27/07, zopyx01 <[EMAIL PROTECTED]> wrote: > Another thing: how does Elixir support multiple databases within the > same process?
Depends... If you have the same tables in different databases, you'd probably use the same metadata and connect to the correct engine to access a particular database. If you have different tables in your several databases, I suggest you create one metadata object for each database, bind each of them to their corresponding engine and declare your entities with using_options(metadata=database_meta) where database_meta is the metadata object for the database this particular entity should be persisted to. > As far as I can see you deal with global metadata which is unlikely > suitable to have > multiple connections to different databases at a time - or am I > missing something? The global metadata is only provided as a convenience, you don't have to use it. Or, you can use it in conjunction with other metadata objects you instanciate yourself. -- 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 -~----------~----~----~----~------~----~------~--~---
