
Hi OvermindDL1 Are you sure you posted in the right thread? There was also a database thread recently, and what you write "You still have to type in a lot of the SQL constructs..." sounds more database related than related to Design by Contract (TM). Regards, Thomas -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of OvermindDL1 Sent: Donnerstag, 7. Januar 2010 14:15 To: boost@lists.boost.org Subject: Re: [boost] [contract] Contract Programming Library On Thu, Jan 7, 2010 at 5:20 AM, Lorenzo Caminiti <lorcaminiti@gmail.com> wrote:
On Tue, Jan 5, 2010 at 7:54 PM, OvermindDL1 <overminddl1@gmail.com> wrote:
For note, the Wt (C++ web toolkit) is making a Dbo sublibrary. No fancy meta-programming techniques, but it runs well and is quite lightweight. It has just been started, but it is already usable.
OvermindDL1, can you please provide a link to Wt DbC source, examples, documentation, etc. I would like to take a close look at it.
To the source, it uses git: http://www.webtoolkit.eu/git/wt.git For examples, there are two included in the source (pretty simple, but the example page works well so far) The documentation is pretty simple currently, mostly just doxygen in the main doc area, but the tutorial demonstrates it best: http://www.webtoolkit.eu/wt/doc/tutorial/dbo/tutorial.html The first blog post about it is: http://www.webtoolkit.eu/wt#/blog/2009/11/26/wt__dbo__an_orm__c___style/more About the only place it uses templates is the query structure to bind to a table class or something like an int if you ask for a count(*) or something. You still have to type in a lot of the SQL constructs, but all binding is done safely and it uses stored procedures a *lot*, and everything requires transactions. I still think boost could make a more db-backend agnostic version ala sqlalchemy, but they are trying to go for it. It is basically version 0.0.1 right now. It has some cool features, and they are adding more things in the git trunk as time goes by. The main problem I have, is like all of the Wt things, it is gpl2 (making it fine for web server stuff, which Wt is, but nothing for anything decent). _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost