Scoping Monadic Relational Database Queries

被引:0
|
作者
Ekblad, Anton [1 ]
机构
[1] Chalmers Univ Technol, Dept Comp Sci & Engn, Gothenburg, Sweden
来源
PROCEEDINGS OF THE 12TH ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON HASKELL (HASKELL '19) | 2019年
关键词
domain-specific languages; haskell; relational databases; scoping;
D O I
10.1145/3331545.3342598
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a novel method for ensuring that relational database queries in monadic embedded languages are well-scoped, even in the presence of arbitrarily nested joins and aggregates. Demonstrating our method, we present a simplified version of Selda, a monadic relational database query language embedded in Haskell, with full support for nested inner queries. To our knowledge, Selda is the first relational database query language to support fully general inner queries using a monadic interface. In the Haskell community, monads are the de facto standard interface to a wide range of libraries and EDSLs. They are well understood by researchers and practitioners alike, and they enjoy first class support by the standard libraries. Due to the difficulty of ensuring that inner queries are well-scoped, database interfaces in Haskell have previously either been forced to forego the benefits of monadic interfaces, or have had to do without the generality afforded by inner queries.
引用
收藏
页码:114 / 124
页数:11
相关论文
共 50 条
  • [1] Detecting suspicious relational database queries
    Boettcher, Stefan
    Hartel, Rita
    Kirschner, Matthias
    ARES 2008: PROCEEDINGS OF THE THIRD INTERNATIONAL CONFERENCE ON AVAILABILITY, SECURITY AND RELIABILITY, 2008, : 771 - 778
  • [2] Fuzzy Queries above Relational Database
    Smolka, Pavel
    Bradac, Vladimir
    PROCEEDINGS OF THE INTERNATIONAL CONFERENCE OF COMPUTATIONAL METHODS IN SCIENCES AND ENGINEERING 2017 (ICCMSE-2017), 2017, 1906
  • [3] Rewriting queries using views over monadic database schemas
    Van den Bussche, J
    INFORMATION PROCESSING LETTERS, 2001, 79 (03) : 111 - 114
  • [4] TRANSLATION OF FUZZY QUERIES FOR RELATIONAL DATABASE SYSTEM
    CHANG, SK
    KE, JS
    IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 1979, 1 (03) : 281 - 294
  • [5] Processing of natural language queries to a relational database
    Samsonova, M.
    Pisarev, A.
    Blagov, M.
    BIOINFORMATICS, 2003, 19 : i241 - i249
  • [6] Towards the Formalization of Fuzzy Relational Database Queries
    Perovkic, Aleksandar
    Takaci, Aleksandar
    Skrbic, Srdjan
    ACTA POLYTECHNICA HUNGARICA, 2009, 6 (01) : 185 - 193
  • [7] Scalable Package Queries in Relational Database Systems
    Brucato, Matteo
    Beltran, Juan Felipe
    Abouzied, Azza
    Meliou, Alexandra
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2016, 9 (07): : 576 - 587
  • [8] How Database Theory Helps Teach Relational Queries in Database Education
    Roy, Sudeepa
    Hu, Yihao
    Miao, Zhengjie
    Yang, Jun
    Gilad, Amir
    Meng, Hanze
    Stephens-Martinez, Kristin
    27TH INTERNATIONAL CONFERENCE ON DATABASE THEORY, ICDT 2024, 2024, 290
  • [9] High Performance SQL Queries on Compressed Relational Database
    Bhuiyan, Mohammad Masumuzzaman
    Hoque, Abu Sayed Md. Latiful
    JOURNAL OF COMPUTERS, 2009, 4 (12) : 1263 - 1274
  • [10] On supporting containment queries in relational database management systems
    Zhang, C
    Naughton, J
    DeWitt, D
    Luo, Q
    Lohman, G
    SIGMOD RECORD, 2001, 30 (02) : 425 - 436