[DBIx-Class-Devel] [sql-translator] Usage clarification (c5b8904)

Sebastian Podjasek notifications at github.com
Wed Jun 24 21:42:10 GMT 2015


According to [docs](http://www.postgresql.org/docs/9.4/static/indexes-partial.html) `WHERE` can be normal condition, so to be totally proper it should be written as:

    my $index = $table->add_index(name => 'myindex', options => [{using => 'hash'}, {where => {'upper(foo)' => 'bar', bar => 'foo'}}], fields => ['bar', 'lower(foo)']);

But this would require code similar to `SQL::Abstract->where`.


---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/sql-translator/commit/c5b8904a2ea32dd974067d4dc3f0254085f9fd8c#commitcomment-11848533
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20150624/8466aae4/attachment.htm>


More information about the DBIx-Class-Devel mailing list