how to resolve "object-relational impedance mismatch" using D

Gour gour at
Wed Feb 22 01:29:31 PST 2012


We're considering what would be the optimal way way to resolve
"object-relational impedance mismatch" problem in our application which
we would like to write using D language.

Considering it's planned to be multi-platform desktop GUI app and have
extensive research capabilities available for learning & studying
purposes - it means to be able to put queries against the whole database
of available data - we are thinking that using embedded database -
sqlite3 -  as application's natural storage format would be a nice fit.
Sqlite3 offers robust format available for multiple platforms.

Moreover, having RDBMS could greatly simplify the code handling all
kinds of queries againsta the data which would be required to write

Otoh, here we come to the well-known "object-relational impedance
mismatch" problem and wonder how to resolve it, iow.:

a) we are not aware of any ORM available for D, so using relational data
model + D with its OOP paradigm, means to resolve the mismatch by hand
by writing required ORM

b) use relational model "as it is", leave OOP (in D) behind, but we
wonder whether such approach makes sense in the language which is
higher-level than C. (E.g. Fossil SCM written in C uses sqlite3 as
storage format.)

c) several papers/posts which we read before and recently (like
"Functional-Relational Impedance Match" Eric Meijer's The Confessions of
a Used Programming Language Salesman) tend to suggest that using
relational data model goes better with FP languages or that the latters
can overcome the above mismatch problem better, which would lead to
putting D's FP capabilites to extreme or

d) something else?

I can provide more details about the nature of the problem or
application's specification if required, but we also wonder how to
resolve it in general using D which advertises as "offers classic
polymorphism, value semantics, functional style, generics, generative
programing, contract programming, and more — all harmoniously


One who restrains his senses, keeping them under full control, 
and fixes his consciousness upon Me, is known as a man of 
steady intelligence. | Hlapicina (Croatia) | GPG: 52B5C810
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <>

More information about the Digitalmars-d mailing list