On Apr 11, 10:28 am, Clive Crous <[email protected]> wrote: > 2009/4/11 Jeremy Evans <[email protected]>: > > > DB << 'REVOKE ...' > > I can't seem to find the username within the database object (?). Is > it stored anywhere? If not, I don't really want to hard-code usernames > into migrations either :( > > I'm really not sure how to handle this. Any advice or suggestions > would really be appreciated.
I'm not sure if it is documented anywhere, but all options you pass to the database are in DB.opts, so: DB.opts[:user] 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 -~----------~----~----~----~------~----~------~--~---
