Language-Integrated Queries in Scala
| Last Update | 6th Jan. 2010 |
| Licence |
/*******************************************************************************
|
| Abstract | The integration of modern programming language and functional database
query languages brings in new innovation in data access mechanism. On the
one hand, programming languages combine object-orientation paradigm and
functional programming style, benefiting from the joint advantage and convenience
of both. On the other hand, functional database query languages
like LINQ provide a manner of language-integrated query, which enables deep
participation of the host-language in query processing.
This Master Thesis investigates and implements this integration. It goes one step further by achieving another integration of object model and relational model. This O/R mapping is implemented through the translation into an intermediate language. The resulting prototype enables a scenario where queries in functional query language(LINQ), embedded in programming language(Scala), are triggered on object model(EMF), which has been persisted in relational model(DBMS). In this scenario, each party acts out its own expertise respectively. In this thesis it is also argued why (a) the persistent representation(in the RDBMS) is isomorphic to its programming language counterpart(in main memory); and (b) similarly for queries at the programming and query language level. |
| Download | Full Text (PDF) | Prototype (ZIP) | Defense Presentation (PDF) |
| Instruction | Entry Class: orm.MainTo run LINQ query:
|
| Useful Links | The Scala Compiler Corner |
| TOP BACK |
© 2011 Kaichuan Wen