Method: Mongo::Connection#copy_database
- Defined in:
- lib/jmongo/connection.rb
#copy_database(from, to, from_host = "localhost", username = nil, password = nil) ⇒ Object
Copy the database from to to on localhost. The from database is assumed to be on localhost, but an alternate host can be specified.
190 191 192 |
# File 'lib/jmongo/connection.rb', line 190 def copy_database(from, to, from_host="localhost", username=nil, password=nil) raise_not_implemented end |