Il giorno giovedì 1 ottobre 2015 17:57:45 UTC+2, Michael Bayer ha scritto:
>
>
>
> On 10/1/15 11:41 AM, Massimiliano della Rovere wrote:
>
> [...]
>
> Second question:
> The "postgresql_ops" parameter of the Index class [1] requires that the
> keys of the dict must equal the .key attributes of the columns/expressions
> used to define the index.
>
>
> give your expression a simple label and this should be recognized
>
> expr = table.c.foo.concat(table.c.bar).label('my_expr')
>
> postgresql_ops={"my_expr", "gin_trgm_ops"}
>
Thanks!
>
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.