[nem-en] SQL macros (dataSqlClient.n)
Kamil Skalski
kamil.skalski at gmail.com
Wed Oct 18 20:18:54 CEST 2006
I made some changes, to dataNpgsql and dataSqlClient.n so they now
differ only on the Helper class. Now it is possible to move even more
code to common Tools class in Nemerle.Macros
On 10/18/06, Ildar Mulyukov <ildar at users.sourceforge.net> wrote:
> On 18.10.2006 15:37:05, Kamil Skalski wrote:
> > Cool, this is a nice work. Did it actually work for you?
> Works for me (C) :)
> At least compilation was successful, giving warnings like these:
> Trigger.n:37:4:37:21: warning: N168: a local value args was never used
> Trigger.n:37:4:37:21: warning: N168: a local value tid was never used
> Trigger.n:37:4:37:21: warning: N168: a local value condition was never
>
> where ``args, tid, condition'' are fields of my sqlite3 database.
That's great, I will try this out, since I currently work on
application using sqlite3
> 1. add this file as a subproject, target=library
> 2. make the main project dependent on this macro library
> Ideally, the file should be ready-to-be-used without any changes,
> depending on the database, that I use and switching off everything else.
>
I think chosing DB provider by switching referenced assemblies should
be possible - we have the assembly level macros, which can be defined
separately in different macro libraries. Such macro could probably
prepare and register in some global field the helper object, which
would implement creation of connection, command, parameter objects,
etc. specific for DB.
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list