API:FireDAC.Phys.MongoDBDataSet.TFDMongoCustomMemTable

From RAD Studio API Documentation
Jump to: navigation, search

FireDAC.Comp.Client.TFDCustomMemTableFireDAC.Comp.Client.TFDAdaptedDataSetFireDAC.Comp.DataSet.TFDDataSetData.DB.TDataSetSystem.Classes.TComponentSystem.Classes.TPersistentTFDMongoCustomMemTable
[–] Properties
Type: class
Visibility: public
Source:
FireDAC.Phys.MongoDBDataSet.pas
FireDAC.Phys.MongoDBDataSet.hpp
Unit: FireDAC.Phys.MongoDBDataSet
Parent: FireDAC.Phys.MongoDBDataSet

Delphi

TFDMongoCustomMemTable = class(TFDCustomMemTable)

C++

class PASCALIMPLEMENTATION TFDMongoCustomMemTable : public Firedac::Comp::Client::TFDCustomMemTable

Description

This class implements an in-memory dataset.

FireDAC.Phys.MongoDBDataSet.TFDMongoCustomMemTable inherits from FireDAC.Comp.Client.TFDCustomMemTable. All content below this line refers to FireDAC.Comp.Client.TFDCustomMemTable.

This class implements an in-memory dataset.

Use TFDCustomMemTable to manage data in the client memory and optionally exchange the data with a DBMS.

In general, TFDCustomMemTable is an in-memory dataset. It can be populated directly by the code at run time without connecting to a database.

Example

  FDMemTable1.FieldDefs.Add('id', ftInteger);
  FDMemTable1.FieldDefs.Add('name', ftString, 20);
  FDMemTable1.Open;
  FDMemTable1.AppendRecord([1, 'MySQL']);
  FDMemTable1.AppendRecord([2, 'SQLite']);

TFDCustomMemTable can be populated from a database using the TFDTableAdapter and TFDCommand components. This can be considered advanced technique, because TFDQuery can be used for most DB data exchange operations.

This class hides some of the properties, allowing the descendant classes to control the properties' visibility. End users should use TFDMemTable.

See Also