FireDAC.Phys.MongoDBWrapper.TMongoDatabase.Command
Delphi
function Command(ACommand: TMongoCommand; AFlags: TMongoQueryFlags = []): IMongoCursor; overload;
function Command(const AJSON: String; AFlags: TMongoQueryFlags = []): IMongoCursor; overload;
C++
_di_IMongoCursor __fastcall Command(TMongoCommand* ACommand, TMongoQueryFlags AFlags = TMongoQueryFlags() )/* overload */;
_di_IMongoCursor __fastcall Command(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 | TMongoDatabase |
Description
Executes the specified database command on the database 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.