HDBC
from HaskellでDB
文字列でSQLを与える。DBIに似た感じ。
github
2019年から更新されていない
hackage
型
SqlValue
SQL内で使える型の直和
SqlString, SqlLocalTimeなど
関数
prepare :: conn -> String -> IO Statement
SQLからStatementを作成
execute :: Statement -> [SqlValue] -> IO Integer
Statement型の値を実行
fetchRow :: Statement -> IO (Maybe [SqlValue])
Statement型の値から結果を取り出す
https://github.com/hdbc/hdbc/wiki
https://hackage.haskell.org/package/hdbc-aeson
https://www.foxhound.systems/blog/grouping-query-results-haskell/
https://www.zaneli.com/blog/20201219Riak