I concur, Wt::Dbo is awesome :D
Parvinder, just spend an afternoon going through the tutorial and make the
tutorial app: http://www.webtoolkit.eu/wt/doc/tutorial/dbo/tutorial.html
<http://www.webtoolkit.eu/wt/doc/tutorial/dbo/tutorial.html>Then copy and
paste bits of that into your app.
After months of mucking around with the evil mongodb client, I switched to
postgresql and Wt::Dbo yesterday.
Ported over an app and added some features at the same time, all in one
afternoon.
The Wt::Dbo version uses less code, is nicer to program with, more logical,
I dare to say likely less error prone.
The one complaint I have is that my model classes seem to require to have a
default consctructor. I'm probably being a too fussy, but I was initially
worried that it might be trying to create instances of my models left right
and center.
There's no noticeable performance hit .. still takes a fraction of a second
to import 1000 records; well it's slightly noticeable, I'm not sure if it's
my imagination though .. hard to discern.
I like how the Wt::Dbo model only requires me to map the fields once .. less
scary.
Old mongo model: http://ideone.com/SReFx
New Wt::Dbo model: http://ideone.com/sDrcy
Thanks Koen and team for making code that's such a delight to work with.
Matthew Sherborne
On Mon, Jul 18, 2011 at 4:15 AM, Stefan Jessen <[email protected]
> wrote:
> I don't see a problem here, it's quite simple.
> First, read this:
> http://www.webtoolkit.eu/wt/doc/tutorial/dbo/tutorial.html
> While you read the tutorial, read the documentation about Wt::Dbo::Session
> and Wt::Dbo::Transaction (at least, also take a look at the other classes).
> This isn't very hard, because Wt offers a pretty good documentation, so
> give it a try:
> http://www.webtoolkit.eu/wt/doc/reference/html/namespaceWt_1_1Dbo.html
>
> Next, you need to get the internal path, the
> WApplication::internalPathChanged
> Signal is the way to go (This is the hardest part, depending on your needs
> it will
> be straight forward or the complete opposite).
>
> And now read, read and .. read the documentation and play around with it.
> I did so and already implemented a simple Blog and User Management by using
> Wt::DBo (Btw, thanks for this great thing), it was overall pretty straight
> forward.
>
> > Hello Everyone
> > Can you tell me how to access the value from database through url or
> > path in witty. which function is used and how to give url.
>
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest