Subject Re: [Firebird-Architect] GPRE
Author Adriano dos Santos Fernandes
Em 9/2/2010 09:25, Peter Faulks escreveu:
> I prefer it.
>
> Code is easy to read, and the apps I make are small and fast.
>
> I use C++ Builder for GUI stuff. For every form that interacts with the
> db, I simply create another unit (so the class for the form is split
> into two units) One has all the ide generated code, and functions that
> have embedded sql are in a separate file.
>
> eg:
>
> Unit1.cpp / Unit1.h / Unit1.dfm
> Unit1_SQL.epp -> Unit1_SQL.cpp
>
>
> Too easy.
So you can easily build an simple (than GPRE way) preprocessor
application that does that.

You send statements to the server (that may be embedded) to test them,
but generate the sources with SQL code, instead of BLR.

This is how SQLJ works, for example.


Adriano