Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Student works
  4. An Embedded Query Language in Scala
 
master thesis

An Embedded Query Language in Scala

Shaikhha, Amir  
2013

In this thesis we address the problem of integrating general purpose programming languages with relational databases. An approach to solving this problem is using raw strings to represent SQL statements. This approach leads to runtime errors and security vulnerabilities like SQL injection. The second approach is integrating the query in a host language. The most well-known example of the second approach is LINQ. This approach provides static checking of types and syntax during compilation. This thesis presents an embedded query language in Scala, namely Shadow Embedding in Slick. Shadow Embedding provides even stronger compile-time guarantees than LINQ and similar systems in Scala. The experimental results show that the performance of our approach is very similar to the case of using raw Strings, thanks to static code analysis and clever code caching.

  • Files
  • Details
  • Metrics
Type
master thesis
Author(s)
Shaikhha, Amir  
Advisors
Odersky, Martin  
Date Issued

2013

Subjects

Embedded Domain-Specific Languages

•

Query Languages

•

Scala

•

Macros

Written at

OTHER

EPFL units
LAMP1  
Available on Infoscience
October 21, 2015
Use this identifier to reference this record
https://infoscience.epfl.ch/handle/20.500.14299/120019
Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés