On Sunday, June 3, 2012 3:08:48 AM UTC-7, Harisankar P S wrote:
>
> Hello there, 
>
> Can you tell me how I can check if a table already exist, in the 
> database. My aim is to create a script that check if the particular 
> table is there, else create it. 
>
>
You probably want Database#create_table?, which does exactly that.  If you 
just want to check table existence, Database#table_exists? can be used.

Both of these methods are covered in the Database RDoc: 
http://sequel.rubyforge.org/rdoc/classes/Sequel/Database.html

Thanks,
Jeremy 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/j8NTV66J1v4J.
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