[Lazarus] WebData

Leonardo M. Ramé l.rame at griensu.com
Fri Oct 15 20:49:32 CEST 2010


On 2010-10-15 15:06:12 +0200, Michael Van Canneyt wrote:
> 
> 
> >
> >Well, It's not an issue at all, I could create a stored procedure in
> >charge of receiveing the params from the dataprovider, then adapt them to
> >their respective tables. It's not an issue because I usually work with
> >Firebird and PostgreSql, and they have stored procedures.
> >
> >I ask this because I'm thinking of adding a new layer of abstraction by
> >letting the TFPWebProviderDataModule load a configuration from, say, an
> >XML file with the list of Providers and its Select, Insert, Update, and
> >Delete statements, like this:
> 
> Aha !! I have this on my todo list as well :-)
> 
> Only I wasn't going to use XML, but .INI format.
> In fact the file format is irrelevant; I planned to do it in 2 levels:
> 
> TFileWebDataProvider
>  +- TIniFileWebdataProvider
> 
> I was going to put it in a separate component, but make the
> TFPWebProviderDataModule aware of this component. Gives more
> options.
> 
> Michael.

I attached a proof of concept, take a look and comment.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.gz
Type: application/octet-stream
Size: 4686 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20101015/e52a92cd/attachment-0004.obj>


More information about the Lazarus mailing list