FireDAC.Phys.MongoDBWrapper.TMongoConnection.CommandSimple

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CommandSimple(const ADBName: String; ACommand: TMongoDocument): TMongoDocument; overload;
function CommandSimple(const ADBName: String; const AJSON: String): TMongoDocument; overload;

C++

TMongoDocument* __fastcall CommandSimple(const System::UnicodeString ADBName, TMongoDocument* ACommand)/* overload */;
TMongoDocument* __fastcall CommandSimple(const System::UnicodeString ADBName, const System::UnicodeString AJSON)/* overload */;

Properties

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

Description

Executes the specified database command on the database of the MongoDB server that has the specified name, and returns a document that contains the response from the server. .

You may specify the database command to execute as an instance of TMongoCommand or as a string containing a database command defined in JSON format.

To specify a set of query flags, use Command instead of CommandSimple.

See Also