On Feb 28, 10:48 am, Clive Crous <[email protected]> wrote:
> 2009/2/28 Jeremy Evans <[email protected]>
>
> >  index 'username(256)'.lit, :name=>:mytable_username_index
>
> Oh, much "nicer" than my usage of execute, perhaps I'll look into a patch
> for this at some point
>
> This seems a reasonable usage (only actually used by the mysql adapter of
> course)
>
> index :username, :size => 256
>
> thoughts?

That's what is used for columns, but it can't be extended to indexes
as indexes can have multiple columns.  You could possibly do something
like:

 index [:username, :name], :sizes=>[256, nil]

I don't really like that, though.  Personally, I think using .lit is
acceptable here.  You are probably in database specific territory
anyway if you are using prefix indexes, and using lit is probably
going to be the least verbose syntax in any case.

Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to