On Wed, Feb 3, 2010 at 15:12, Graham Higgins <[email protected]> wrote:
> I need to create some named indexes,
[...]
> AIUI, I can't just drop SQL Index declarations such as:
>
> Index('%s_A_termComb_index' % tgtstr, <getcolfrommapper>)
>
> straight into my elixir model and expect them to work because the
> mapper is constructed at a later stage.
Declaring your index object after setup_all should do the trick. Not a
very clean solution I admit, but I don't see any other solution to
this problem with the current versions of Elixir (and SQLAlchemy).
Could you add a ticket for this on the trac so that I keep an eye on
this, whenever I get back to coding on Elixir?
--
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.