FireDAC.Phys.MongoDBWrapper.TMongoConnection.Command
Delphi
function Command(const ADBName: String; ACommand: TMongoCommand; AFlags: TMongoQueryFlags = []): IMongoCursor; overload;
function Command(const ADBName: String; const AJSON: String; AFlags: TMongoQueryFlags = []): IMongoCursor; overload;
C++
_di_IMongoCursor __fastcall Command(const System::UnicodeString ADBName, TMongoCommand* ACommand, TMongoQueryFlags AFlags = TMongoQueryFlags() )/* overload */;
_di_IMongoCursor __fastcall Command(const System::UnicodeString ADBName, const System::UnicodeString AJSON, TMongoQueryFlags AFlags = TMongoQueryFlags() )/* 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 cursor to access the results.
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.
You can optionally specify a set of query flags.