{"provider_url":"https://hatena.blog","author_name":"ktdk","blog_url":"https://kogoto.hatenablog.com/","title":"PostgreSQL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b","version":"1.0","height":"190","author_url":"https://blog.hatena.ne.jp/ktdk/","published":"2017-06-19 23:35:43","url":"https://kogoto.hatenablog.com/entry/2017/06/19/233543","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkogoto.hatenablog.com%2Fentry%2F2017%2F06%2F19%2F233543\" title=\"PostgreSQL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b - \u3042\u308c\u3050\u308d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u3042\u308c\u3050\u308d","width":"100%","description":"\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308bdatabase/sql\u3092\u5229\u7528\u3057\u3066PostgreSQL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3059\u3002 \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304c\u3042\u308b\u306e\u3067\u8a73\u7d30\u306f\u3053\u3061\u3089\u3092\u898b\u308b\u3068\u826f\u3044\u3067\u3059\u3002 Go database/sql tutorial \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c9\u30e9\u30a4\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb SQLDrivers \u306b\u30c9\u30e9\u30a4\u30d0\u306e\u4e00\u89a7\u304c\u3042\u308a\u307e\u3059\u3002 PostgreSQL\u306e\u30c9\u30e9\u30a4\u30d0\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u304c\u4eca\u56de\u306flib/pq\u3092\u5229\u7528\u3057\u307e\u3059\u3002 $ go get github.com/lib/pq \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a sql.Open()\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f*sql.DB\u3092\u8fd4\u3057\u307e\u3059\u3002 db, err := sql.Open(\"post\u2026","image_url":null,"type":"rich","categories":["Go\u8a00\u8a9e","Golang","PostgreSQL"]}