self
to another database
.The database will also be updated internally so it is safe to continue using this collection after the move. Additional operations will occur on moved collection.
# Moves `self` to another `database`.
#
# The database will also be updated internally so it is safe to continue using
# this collection after the move.
# Additional operations will occur on moved collection.
fun move(database: MongoDb): Bool do
self.database = database
return native.rename(database.name.to_cstring, name.to_cstring)
end
lib/mongodb/mongodb.nit:685,2--693,4