Create queries like TDataprovider in Delphi

Discussion of open issues, suggestions and bugs regarding Virtual Data Access Components for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jkuiper
Posts: 138
Joined: Fri 04 Aug 2006 14:17

Create queries like TDataprovider in Delphi

Post by jkuiper » Tue 25 Nov 2008 11:20

I read in this forum that I can use TMyLoader to put my virtual records in the real table (Mysql). Is this simular to TClientdataset --> TDataprovider --> TQuery? When using TClientdataset.applyupdates(), the dataprovider creates queries for insert /update / delete.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 26 Nov 2008 08:27

Yes, the TMyLoader component creates INSERT statement to add data to the database table.

jkuiper
Posts: 138
Joined: Fri 04 Aug 2006 14:17

Post by jkuiper » Thu 27 Nov 2008 12:10

But no update and delete queries :(

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 28 Nov 2008 12:40

You should use the TMyQuery component in CachedUpdates mode instead of TVirtualTable if you want to INSERT, UPDATE, and DELETE statements to be generated.

Post Reply