{"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/maluboh/","blog_url":"https://maluboh.hatenadiary.org/","blog_title":"\u307e\u308b\u307c\u301c\u306e\u65e5\u8a18","version":"1.0","url":"https://maluboh.hatenadiary.org/entry/20060421/p1","image_url":null,"height":"190","author_name":"maluboh","description":"ruby\u304b\u3089postgres\u3092\u4f7f\u3046\u306b\u306f Ruby PostgreSQL\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046\u3002API\u306e\u8aac\u660e\u306fPostgres reference\u3092\u53c2\u7167\u3002Debian(sid)\u3067\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u540d\u306f libpgsql-ruby1.8\u3002 $ sudo apt-get install libpgsql-ruby1.8 \u7c21\u5358\u306a\u4f7f\u3044\u65b9\u3092\u66f8\u3044\u3066\u304a\u304f\u3002 require 'postgres' # postgres \u306b\u63a5\u7d9a conn = PGconn.connect(\"localhost\", 5432, \"\", \"\", \"testdb\", \"user\", \"passwd\") # \u30af\u30a8\u30ea\u3092\u767a\u884c res = conn.e\u2026","published":"2006-04-21 00:00:00","provider_url":"https://hatena.blog","type":"rich","width":"100%","title":"ruby\u304b\u3089postgresql\u3092\u4f7f\u3046","categories":["etc"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaluboh.hatenadiary.org%2Fentry%2F20060421%2Fp1\" title=\"ruby\u304b\u3089postgresql\u3092\u4f7f\u3046 - \u307e\u308b\u307c\u301c\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}