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
test.tar.gz
Description: Binary data
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
