Proceedings of the 18th ACM SIGPLAN International Conference on Functional Programming 2013
DOI: 10.1145/2500365.2500586
|View full text |Cite
|
Sign up to set email alerts
|

A practical theory of language-integrated query

Abstract: Language-integrated query is receiving renewed attention, in part because of its support through Microsoft's LINQ framework. We present a practical theory of language-integrated query based on quotation and normalisation of quoted terms. Our technique supports join queries, abstraction over values and predicates, composition of queries, dynamic generation of queries, and queries with nested intermediate data. Higher-order features prove useful even for constructing first-order queries. We prove a theorem chara… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
51
0

Year Published

2015
2015
2021
2021

Publication Types

Select...
4
2
1
1

Relationship

1
7

Authors

Journals

citations
Cited by 59 publications
(53 citation statements)
references
References 37 publications
0
51
0
Order By: Relevance
“…Several SQL queries in the source code have been written in Quill [12] a quoted domain specific language created by a Twitter software engineer. It has been inspired by a paper about language-integrated queries [13] and it allows for compile-time query generation and asynchronous execution, a modality well accepted in the Play2's share-nothing architecture based on actors.…”
Section: Compile-time Query Generation With Quillmentioning
confidence: 99%
“…Several SQL queries in the source code have been written in Quill [12] a quoted domain specific language created by a Twitter software engineer. It has been inspired by a paper about language-integrated queries [13] and it allows for compile-time query generation and asynchronous execution, a modality well accepted in the Play2's share-nothing architecture based on actors.…”
Section: Compile-time Query Generation With Quillmentioning
confidence: 99%
“…However, in the context of LINQ to SQL, the problem of analysing and normalising of LINQ queries in order to provide minimal and cohesive mapping to SQL has drawn attention of the scientific community. This is caused mostly by some drawbacks of the original Microsoft's solution that in some cases may fail or produce a so-called "query avalanche" [18] [19].…”
Section: Related Work and The State-of-the-artmentioning
confidence: 99%
“…However, Links pioneered many of the other design elements on display in Figure 1, including type-safe combination of HTML and database code within a single language. One further key difference is that Ur/Web works with direct embedding of SQL code, whereas Links compiles to SQL from a subset of itself, presented as a monadic query language [7].…”
Section: Html and Sqlmentioning
confidence: 99%
“…The language-integrated query approach represents queries within a restricted subset of the host programming language, rather than working with explicit embedded syntax of a language like SQL. Microsoft's LINQ [27] is the well-known example that gives the approach its name, but the contemporaneous Links language [7,11] uses static type checking and term rewriting to provide more principled guarantees about which expressions will compile to SQL successfully. Ur/Web encodes SQL as a library, with no special type-inference support required in the compiler, and the programmer benefits from the explicit control over exactly which code will be passed to the database system.…”
Section: Html and Sqlmentioning
confidence: 99%
See 1 more Smart Citation