将结果集转换为哈希表列表的最简单方法是什么?我是 Scheme 的新手,宁愿使用库函数也不愿自己动手。我正在使用带有 postgres 鸡蛋的鸡计划。谢谢!
(use postgresql)
(define conn (connect '((dbname . "thedb") (user . "foo") (password . "secret") (host . "somehost"))))
(define rs (query conn "select id, name from users"))
(row-map print rs)
;(row-map ??? rs) ;what would take the place of the ??? here that would convert the row a hashtable so I end up with a list of hashtables?