[nem-en] SQL macros (dataSqlClient.n)

Kamil Skalski kamil.skalski at gmail.com
Wed Oct 18 08:47:36 CEST 2006


Probably it is possible to get some more common code out of Npgsql and
SqlClient macros, but there will always be some provider specific
code, for example mapping of SQL types to .NET types, which is needed
during parameters assignment generation and converting returned
values.
Also, macros must actually run the provider to check the query.

Probably the best way to see the opportunities and problems in
refactoring this code is trying to write macros for some other
provider. :)

On 10/18/06, Ildar Mulyukov <ildar at users.sourceforge.net> wrote:
>         Hello,
> In macros folder we have dataSqlClient.n. The macros folder originally
> contains files of Nemerle.Macros.dll assembly, so this makes me think,
> that dataSqlClient.n can (theoretically,sometimes) be included into the
> assembly. It is very useful indeed and is a good example of "Practical
> Macros" concept.
>
> But before that, it must be redesigned to be database independent. Do
> you have any ideas, how to accomplish it in universal and elegant way?
>
> Thanks! Best regards, Ildar.
> --
> Ildar  Mulyukov,
>    free SW designer/programmer
> ================================================
> email: ildar at users.sourceforge.net
> projects: http://os-development.sourceforge.net/
> home: http://tuganger.narod.ru/
> ALT Linux Sisyphus
> ================================================
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list