Re: [Nutshell-devel] About DAOs
Status: Planning
Brought to you by:
alexandream
From: Alexandre M. <ale...@gm...> - 2006-10-04 02:02:12
|
2006/10/3, Rodrigo Coacci <rc...@gm...>: > Well, as you asked me to find an API, here it goes: > http://thaiopensource.org/development/libpqxx/ - its a C++ > wrapper to libpq, the official postgre C API. It's designed to use > transactions, throw C++ exceptions and results (or ResultSets) are returned > as smart pointers to objects. I was rather thinking in using the good official postgre C API wrapped inside our DAOS... it would spare us the dependency in another lib... but hey, if this is good enough, we can give it a try. The only thing I don't like in it is that it would probably make our code too much "PGsql" based, since we already have the C++ wrapper classes we will use them, but with the low level API we would wrap it into some "smart" interface, that we could then reuse if we ever decided to change to mySQL or Oracle or anything like it... But, no problems, give it a try, give me some code on how it would be used to write basic SELECT/INSERT/UPDATE applications and we'll discuss it. > OTOH, would we be needing ORM (object-realtional mapping)? Or it's overkill? > I don't know much of what you are thinking for domain objects, so I can't > answer that. > ORM is not needed at all, I mean, it would be "nice" but is not *needed*, since most of our code won't even bother with the DBMS code. > Cheers, > Rodrigo > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Nutshell-devel mailing list > Nut...@li... > https://lists.sourceforge.net/lists/listinfo/nutshell-devel > > > Cheers, Alexandre Moreira. |