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.

Parameters:

  • from (String)

    name of the database to copy from.

  • to (String)

    name of the database to copy to.

  • from_host (String) (defaults to: "localhost")

    host of the ‘from’ database.

  • username (String) (defaults to: nil)

    username for authentication against from_db (>=1.3.x).

  • password (String) (defaults to: nil)

    password for authentication against from_db (>=1.3.x).



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