With many thanks to https://www.thesaurus.com, an updated sdbi API: https://github.com/Schemepersist/sdbi-design/blob/master/apis/sdbi.txtIt is John's Simple SQL API with "sql-" replaced with "sdbi-", and the following changes:New opaque data type, tech-stack, and that's not a good name for the stack of e.g. "subprocess jdbc db2", suggestions including replacing "stack" are solicited.
Here I made thunk optional, removing needless ceremony and a procedure call if you just want the result set.(sdbi-get-result connection statement [thunk]) -> result-set or what thunk returnsExecutes statement, and thunk supplied, passes it the result-set.Everything following, which starts with (sdbi-read result-set) -> list, is unchanged except for the"sql-" -> "sdbi-" swap.- Harold