lilo wrote:
>
> I have tried this command:
> a.a_metadata.drop_all(bind=db)
> a.a_metadata.create_all(bind=db)
>
> and they don't create any tables and I don't get any error at all.
>
> With, setup_all(True, bind=db), creates table A and B on each
> engine. I just want table A on m1,m2 and table B on n1,n2. I
> have spent quite some time searching and going over the docs but I
> can't figure out the problem is.
You aren't actually telling the entities which metadata they belong
to. The documentation clearly instructs you how to do this on this
page:
http://elixir.ematia.de/apidocs/elixir.options.html
The relevant section discusses the `using_options` statement, states
that you can pass a `metadata` keyword argument:
Specify a custom MetaData for this entity. By default, entities
uses the global elixir.metadata. This option can also be set for
all entities of a module by setting the __metadata__ attribute
of that module.
Good luck.
--
Jonathan LaCour
http://cleverdevil.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
-~----------~----~----~----~------~----~------~--~---