A COORDINATION LANGUAGE FOR DATABASES

作者:Li, Ximeng*; Wu, Xi; Lafuente, Alberto Lluch; Nielson, Flemming; Nielson, Hanne Riis
来源:Logical Methods in Computer Science, 2017, 13(1): 10.
DOI:10.23638/LMCS-13(1:10)2017

摘要

We present a coordination language for the modeling of distributed database applications. The language, baptized Klaim-DB, borrows the concepts of localities and nets of the coordination language Klaim but re-incarnates the tuple spaces of Klaim as databases. It provides high-level abstractions and primitives for the access and manipulation of structured data, with integrity and atomicity considerations. We present the formal semantics of Klaim-DB and develop a type system that avoids potential runtime errors such as certain evaluation errors and mismatches of data format in tables, which are monitored in the semantics. The use of the language is illustrated in a scenario where the sales from different branches of a chain of department stores are aggregated from their local databases. Raising the abstraction level and encapsulating integrity checks in the language primitives have benefited the modeling task considerably.

全文