FireDAC.Phys.MongoDBWrapper.TMongoConnection.GetDatabase

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetDatabase(const ADBName: String): TMongoDatabase;

C++

TMongoDatabase* __fastcall GetDatabase(const System::UnicodeString ADBName);

Properties

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

Description

Returns a database of the MongoDB server that has the specified name.

You are responsible for destroying any database object that you obtain from GetDatabase. If you want the connection object to be the owner of the database object, obtain your database object from the Databases property instead.

See Also