Thibaut Barrère
unread,Sep 20, 2010, 8:57:31 AM9/20/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
Hi,
I'm trying to detect if a collection exist before renaming it
(renaming an non existing collection raises Error renaming collection:
{"errmsg"=>"exception: source namespace does not exist",
"code"=>10026, "ok"=>0.0}).
I could not find a function to achieve this (through the Ruby driver
at least). Is it possible in some way ?
cheers,
-- Thibaut