[fpc-pascal] Data persistance in CGI projects
Jorge Aldo G. de F. Junior
jagfj80 at gmail.com
Sun Feb 26 19:48:59 CET 2012
You can use rtti and create a base class that knows how to save/load
itself from sql database...
2012/2/26 Luciano de Souza <luchyanus at gmail.com>:
> Actually, reading the tiOPF, I found the support for Firebird, Microsoft SQL
> Server, Oracle, but not for PostgreSQL. This is the first reason. I really
> don't know how proper tiOPF is when we focuses on CGI development. At a
> first look, the project seemed to be very complex to use, but of course, I
> may be wrong.
>
>
> Em 26-02-2012 13:29, Michael Van Canneyt escreveu:
>
>>
>>
>> On Sun, 26 Feb 2012, Luciano de Souza wrote:
>>
>>> Hello all,
>>>
>>> For desktop environments, there are mature projects on data persistance.
>>> Press Objects, TiOPF... desktop developers can be proud of the tools they
>>> have.
>>>
>>> What about CGI environments? Is there something already developed? Yes,
>>> we can use SQLDB. It's really a very good component. However, we need to
>>> write lots of SQL. The dream would be something like:
>>>
>>> user := TUser.create;
>>> user.name := 'Luciano';
>>> user.age := 36;
>>> user.insert;
>>
>>
>> Why not use tiOPF for this as well ? It works just as well in CGI
>> environments.
>>
>> Michael.
>> _______________________________________________
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list