FireDAC.Phys.MongoDBWrapper.TMongoCollection.Rename

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Rename(const ANewDB, ANewName: String; ADropTarget: Boolean = True);

C++

void __fastcall Rename(const System::UnicodeString ANewDB, const System::UnicodeString ANewName, bool ADropTarget = true);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper TMongoCollection

Description

Changes the name of the collection and the database that contains the collection to the specified values.

If an existing collection matches the specified new name:

  • If ADropTarget is True, Rename drops the existing collection and then renames this collection to replace the dropped collection.
  • If ADropTarget is False, Rename raises an exception.

See Also