{"blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","author_url":"https://blog.hatena.ne.jp/sirocco/","width":"100%","published":"2011-05-12 16:32:44","provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","title":"Haskell \u3067 PostgreSQL \u3092\u6271\u3046\uff1a\u300c\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u300d","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20110512%2F1305185564\" title=\"Haskell \u3067 PostgreSQL \u3092\u6271\u3046\uff1a\u300c\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u300d - sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://sirocco.hatenadiary.org/","height":"190","categories":["PostgreSQL","Haskell"],"author_name":"sirocco","description":"\u524d\u56de\u306f connectPostgreSQL \u3067\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u3092\u78ba\u7acb\u3057\u3066 quickQuery'\u3067\u8aad\u307f\u51fa\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306f prepare \u3092\u4f7f\u3063\u305f\u8aad\u307f\u51fa\u3057\u3067\u3059\u3002 SQL\u306e\u300cPREPARE \u3067 SQL \u3092\u6e96\u5099\u3057\u3001EXECUTE \u306b\u3088\u308a\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u307f\u306e\u5b9f\u884c\u300d\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002 -- ghc --make -o sel -LC:\\PostgreSQL\\8.4\\lib select.hs main = do conn <- connectPostgreSQL \"host=localhost port=5433 dbname=test\" stmt <- prepare conn \"SELECT id,code\u2026","version":"1.0","url":"https://sirocco.hatenadiary.org/entry/20110512/1305185564"}