[m-users.] Accessing a Relational Database and Purity
ayrnieu at gmail.com
Wed Nov 14 13:05:41 AEDT 2018
Just pass io through your C FFI functions, as in
https://github.com/jrfondren/getr-mercury/blob/master/rusage.m , and
then add the promise_pure flag.
On Tue, Nov 13, 2018 at 10:17 AM Charles Shuller
<charles.shuller at gmail.com> wrote:
> Is it possible to access a relational database from mercury in a pure way??
> Using the FFI I can use a C library to interact with the DB, but the resultant functions aren't pure. Do I need to do something with a state variable??
> users mailing list
> users at lists.mercurylang.org
More information about the users