Lazy Database Access with Persistent Predicates

Sebastian Fischer
2007 Electronical Notes in Theoretical Computer Science  
Programmers need mechanisms to store application specific data that persists multiple program runs. To accomplish this task, they usually have to deal with storage specific code to access files or relational databases. Functional logic programming provides a natural framework to transparent persistent storage through persistent predicates, i.e., predicates with externally stored facts. We extend previous work on persistent predicates for Curry by lazy database access. Results of a database
more » ... are only read as much as they are demanded by the application program. We also present a typeoriented approach to convert between database and Curry values which is used to implement lazy access to persistent predicates based on a low level lazy database interface.
doi:10.1016/j.entcs.2007.01.024 fatcat:3ygiohqbobbsneatzh56vwe7uy