FireDAC.Phys.MongoDBWrapper.TMongoExpression.Append
Delphi
function Append(const ADoc: TMongoDocument): TMongoExpression<T>; overload; inline;
function Append(const AJSON: String): TMongoExpression<T>; overload; inline;
function Append(const AItems: array of const): TMongoExpression<T>; overload;
C++
TMongoExpression__1<T>* __fastcall Append(TMongoDocument* const ADoc)/* overload */;
TMongoExpression__1<T>* __fastcall Append(const System::UnicodeString AJSON)/* overload */;
TMongoExpression__1<T>* __fastcall Append(const System::TVarRec *AItems, const int AItems_High)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TMongoExpression |
Description
Appends a specified content to the end of this expression, and returns a reference to this expression.
Use this method to append a specified content to this expression. This method is overloaded and can be used for adding the content of the following types:
Method Header | Description |
---|---|
Append(const ADoc: TMongoDocument)
|
Appends the content of the |
Append(const AJSON: String)
|
Appends the content of the |
Append(const AItems: array of const)
|
Appends an open array The open array represents a "parsed" JSON. To add various items, do the following:
For example:
|
Examples
To clarify, consider the following examples:
Delphi:
var
oExp: TMongoExpression;
.....
oExp.Append('{"coord": [-73.95, 40.77]}');
C++Builder:
...
TMongoExpression *oExp;
oExp->Append("{'coord': [-73.95, 40.77]}");