<< Click to display table of contents >> TRVReportMyDataProvider [VCL] |
A data provider receiving data from MySQL databases via MyDAC.
Unit RVReportMyDataProvider;
Syntax
TRVReportMyDataProvider = class (TRVReportCustomDBDataProvider)
TObject TPersistent TComponent |
This component provides data for a report generator component from MySQL databases via MyDAC components by Devart.
This data provider handles the following data queries:
•SQL select statement
•table name
To use this component, assign it to DataProvider property of TRVReportGenerator.
TRVReportMyDataProvider introduces properties:
property Connection: TCustomMyConnection;
Also: Options, FetchRows, FetchAll, DataTypeMap, Encryption, SmartFetch properties, AfterQueryExecute, AfterQueryFetch events.
Internally, the component uses temporal TMyQuery and TMyTable components to handle data queries. The data provider properties and events are assigned to these components. If you want to assign additional properties to them, use OnDataSetCreated event.
In addition to the default query processing, you can provide another DataSet component in OnCreateDataSet event. This DataSet is not necessary needed to be TMyQuery or TMyTable.