Algebraic data types for database query languages
Abstract
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for implementing algebraic data types in database query languages. One of the methods includes receiving an expression in a database query language, the expression having a programming language construct representing an algebraic data type, wherein the expression specifies two or more alternative subtypes. Respective domain relations are generated using definitions of each of the alternative subtypes within the expression. Unique domain identifiers are assigned among domain tuples belonging to each alternative subtype. A union relation is generated for the algebraic data type. Unique union identifiers are assigned for union tuples belonging to the union relation. Respective injector relations are generated for each of the alternative subtypes.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: receiving an expression in a query language, the expression having a query language construct representing an algebraic data type, wherein the expression specifies two or more alternative subtypes; generating, for each of the alternative subtypes, a respective domain relation having domain tuples that satisfy a definition of the alternative subtype within the expression; generating a respective domain id relation for each of the domain relations of the alternative subtypes, wherein the domain id relation for a corresponding domain relation of an altern
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (26)
Non-Patent Literature (5)
- "sql-Modelling algebraic data types using relational database," Feb. 7, 2016, [retrieved on Nov. 10, 2017]. Retrieved from the Internet: URL:<https://stackoverflow.com/questions/33213022/modelling-algebraic-data-types-using-relational-database>. 2 pages.
- ‘chris-taylor.github.io’ [online]. “The Algebra of Algebraic Data Types, Part 1,” Feb. 10, 2013, [retrieved on Dec. 9, 2016]. Retrieved from the Internet: URL<http://chris-taylor.github.io/blog/2013/02/10/the-algebra-of-algebraic-data-types/>. 7 pages.
- ‘developer.logicblox.com’ [online]. “LogicBlox 4 Reference Manuel,” Nov. 6, 2016, [retrieved on Dec. 9, 2016]. Retrieved from the Internet: URL <https://developer.logicblox.com/content/docs4/core-reference/webhelp/predicates.html>. 12 pages.
- ‘wiki.haskell.org’ [online]. “Algebraic data type,” Jun. 27, 2014 [retrieved on Dec. 9, 2016]. Retrieved from the Internet: URL<https://wiki.haskell.org/Algebraic_data_type>. 3 pages.
- ‘www.wikipedia.org’ [online]. “Algebraic data type,” Aug. 1, 2016, [retrieved on Dec. 9, 2016]. Retrieved from the Internet: URL <https://en.wikipedia.org/wiki/Algebraic_data_type>. 6 pages.