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 条
  • [41] Building and Evaluation of Indexes for Possibilistic Queries on a Fuzzy Object-Relational Database Management System
    Miguel Medina, Juan
    Barranco, Carlos D.
    Pons, Olga
    Sanchez, Daniel
    2017 IEEE INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS (FUZZ-IEEE), 2017,
  • [42] Translating Relational Queries into Spreadsheets
    Sroka, Jacek
    Panasiuk, Adrian
    Stencel, Krzysztof
    Tyszkiewicz, Jerzy
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2015, 27 (08) : 2291 - 2303
  • [43] THE COMPLEXITY OF EVALUATING RELATIONAL QUERIES
    COSMADAKIS, SS
    INFORMATION AND CONTROL, 1983, 58 (1-3): : 101 - 112
  • [44] STRUCTURE AND COMPLEXITY OF RELATIONAL QUERIES
    CHANDRA, A
    HAREL, D
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1982, 25 (01) : 99 - 128
  • [45] Learning Union of Integer Hypercubes with Queries (with Applications to Monadic Decomposition)
    Markgraf, Oliver
    Stan, Daniel
    Lin, Anthony W.
    COMPUTER AIDED VERIFICATION, PT II, CAV 2021, 2021, 12760 : 243 - 265
  • [46] Decidability of the Clark's completion semantics for monadic programs and queries
    Haykazyan, Levon
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2015, 15 : 402 - 412
  • [47] A method for rough relational database transformed into relational database
    Wei, Ling-ling
    Zhang, Wei
    2009 IITA INTERNATIONAL CONFERENCE ON SERVICES SCIENCE, MANAGEMENT AND ENGINEERING, PROCEEDINGS, 2009, : 50 - +
  • [48] A Relational Theory of Monadic Rewriting Systems, Part I
    Gavazzo, Francesco
    Faggian, Claudia
    2021 36TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2021,
  • [49] OPTIMIZE DATABASE QUERIES
    CUADRADO, JL
    BYTE, 1995, 20 (07): : 57 - &
  • [50] Undeniable database queries
    Buldas, A
    Roos, M
    Willemson, J
    DATABASES AND INFORMATION SYSTEMS II, 2002, : 43 - 54