The Journal of Object Technology · 2010 · 13 citations · 12 references
ComputingComputer ScienceCompilersDatabasesProgramming LanguagesData TypesDatabase ManagementQuery OptimizationQuery ProcessingType CheckingType SystemsDatabase Query InterfacesDeclarative SemanticsQuery TranslationSql Query LanguagesSql SyntaxType Safety
Abstract The integration of database and programming languages is difficult due to the different data models and type systems prevalent in each field. We present a solution where the developer may express queries encompassing program and database data. The notation used for queries is based on comprehensions, a declarative style that does not impose any specific execution strategy. In our approach, the type safety of languageintegrated queries is analyzed at compile-time, followed by a translation that optimizes for database evaluation. We show the translation total and semantics preserving, and introduce a language-independent classification. According to this classification, our approach compares favorably with Microsoft’s LINQ, today’s best-known representative. We provide an implementation in terms of Scala compiler plugins, accepting two notations for queries: LINQ and the native Scala syntax for comprehensions. The prototype relies on Ferry, a query language that already supports comprehensions yet targets SQL:1999. The reported techniques pave the way for further progress in bridging the programming and the database worlds. Keywords Language-integrated query, Scala programming language, Typedirected program transformation, Compiler plugins.
12
Orthogonally persistent object systems
Malcolm Atkinson, Ronald Morrison · The VLDB Journal · 1995 · 197 citations
Torsten Grust, Manuel Mayr, Jan Rittinger et al. · 2009 · 83 citations
Compiling mappings to bridge applications and databases
Sergey Melnik, Atul Adya, Philip A. Bernstein · 2007 · 65 citations