Utilize este identificador para referenciar este registo: https://hdl.handle.net/1822/6570

TítuloStrong types for relational databases: functional pearl
Autor(es)Visser, Joost
Silva, Alexandra M.
Palavras-chaveType-level programming
Haskell
Relational databases
SQL
Functional dependency theory
Data2006
EditoraAssociation for Computing Machinery
CitaçãoACM SIGPLAN WORKSHOP ON HASKELL, Portland, Oregon, USA, 2006 – “Haskell '06 : proceedings”. New York : ACM Press, 2006. ISBN 1-59593-489-8. p. 25-36.
Resumo(s)Haskell's type system with multi-parameter constructor classes and functional dependencies allows static (compile-time) computations to be expressed by logic programming on the level of types. This emergent capability has been exploited for instance to model arbitrary-length tuples (heterogeneous lists), extensible records, functions with variable length argument lists, and (homogenous) lists of statically fixed length (vectors).We explain how type-level programming can be exploited to define a strongly-typed model of relational databases and operations on them. In particular, we present a strongly typed embedding of a significant subset of SQL in Haskell. In this model, meta-data is represented by type-level entities that guard the semantic correctness of database operations at compile time.Apart from the standard relational database operations, such as selection and join, we model functional dependencies (among table attributes), normal forms, and operations for database transformation. We show how functional dependency information can be represented at the type level, and can be transported through operations. This means that type inference statically computes functional dependencies on the result from those on the arguments.Our model shows that Haskell can be used to design and prototype typed languages for designing, programming, and transforming relational databases
TipoArtigo em ata de conferência
URIhttps://hdl.handle.net/1822/6570
ISBN1-59593-489-8
AcessoAcesso aberto
Aparece nas coleções:HASLab - Artigos em revistas internacionais
DI/CCTC - Artigos (papers)

Ficheiros deste registo:
Ficheiro Descrição TamanhoFormato 
StrongTypesForRDBs_joost.visser.pdfDocumento principal219,73 kBAdobe PDFVer/Abrir

Partilhe no FacebookPartilhe no TwitterPartilhe no DeliciousPartilhe no LinkedInPartilhe no DiggAdicionar ao Google BookmarksPartilhe no MySpacePartilhe no Orkut
Exporte no formato BibTex mendeley Exporte no formato Endnote Adicione ao seu ORCID