Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Ineresting post from D group about Doost lib..
Ineresting post from D group about Doost lib.. [message #15744] Tue, 06 May 2008 21:57
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

..seem our Sql module is not so bad Wink
Quote:


Now I am working on D version of part of U++ library, which is intended to
allow type safe database queries.
(http://www.ultimatepp.org/src$Sql$SqlExp$en-us.html)

Imagine that you put database schema into file:
http://www.dsource.org/projects/doost/browser/trunk/examples /database/TestSchema.schema

and then you use in your program typesafe versions of sql:
http://www.dsource.org/projects/doost/browser/trunk/examples /database/PackageTest.d

And simple cases work already quite well Smile

I just see problem with sql expressions. In U++ it is done like below:
Select(BOOK.AUTHOR).WHERE((BOOK.ID == 100) && (BOOK.TITLE == "Dot"));

In D it is not possible (unfortunately) and must be written like below:
Select(BOOK.AUTHOR).WHERE(land(leq(BOOK.ID, 100), leq(BOOK.TITLE, "Dot")));

I hope that maybe Walter someday will reconsider adding extended operators
overloading as addition to the current system.

Previous Topic: Interesing presentation about upcoming new C++ standard
Next Topic: Qt4.4 is out, link to review at ars technica
Goto Forum:
  


Current Time: Fri Apr 19 11:00:22 CEST 2024

Total time taken to generate the page: 0.03698 seconds