arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · Computer Networks and Communications

Generating queries from complex type de nitions

Manfred A. Jeusfeld, Informatik V

See on the map

Abstract

Many information systems are imple-mented as application programs connected to a database system. A characteristic problem of such systems is the famous impedance mismatch, i.e., the conceptual distance between the programming and the database languages. The traditional solu-tion is to implement an interface that trans-forms one representation into the other. Commercial database systems oer prepro-cessors that allow to embed the database language (e.g., SQL) into the programming language (e.g., C). Such an approach frees the application programmer from the task to specify details of the communication. However, the impedance mismatch is not solved but aggravated. The set-oriented database language is intermixed with the element-oriented programming language, a notorious cause for programming errors. Moreover, there is no support in map-ping the restricted data representation of databases into the more complex type sys-tem of programming language. This pa-per proposes an intermediate language, the API modules, for specifying the relation-ship between the representations in the database and in the application program. The query for retrieving the information and the data types for storing it can be generated from the API module. The mod-ules are simple enough to allow reasoning on queries generated from them. 1

More like this