[fpc-pascal] Database migration
Michael Van Canneyt
michael at freepascal.org
Mon Jun 22 08:56:27 CEST 2020
On Mon, 22 Jun 2020, Jean SUZINEAU wrote:
> Le 21/06/2020 à 09:55, Michael Van Canneyt a écrit :
> I use the functionality in the database desktop actively.
> The generated code even runs in Delphi.
> If you look at it and find ways to improve it, I'm all ears :-)
> I got a quick look at it (Lazarus 2.0.6, FPC 3.0.4).
> I saw there is a distinct generator for each case:
> In my case, there is a single generator which is based on StringReplace with key/values stored in a StringList.
I've seen other code generators that use a similar approach as yours: use templates.
I considered but discarded that approach early on because there is too much logic involved;
I would end up with too many templates.
More information about the fpc-pascal