On Monday, February 4, 2013 11:33:37 PM UTC-8, Andy Keating wrote:
>
> How to run a mysql command like `show tables` and get the result?
>

To run arbitrary SQL that returns rows, just pass a string to Database#[] 
and call #all on the dataset produced:

DB['SHOW TABLES'].all

Jeremy 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to