{"version":"1.0","blog_url":"https://pylet.hatenadiary.org/","categories":[],"width":"100%","blog_title":"pylet\u306e\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/pylet/","url":"https://pylet.hatenadiary.org/entry/20080327/dbapi","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpylet.hatenadiary.org%2Fentry%2F20080327%2Fdbapi\" title=\" DBAPI\u52c9\u5f37\u4e2d - pylet\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>","published":"2008-03-27 00:00:00","provider_url":"https://hatena.blog","height":"190","description":"PostgreSQL + psycopg2\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3061\u3085\u3046\u3002PEP 249 -- Python Database API Specification v2.0 | Python.org\u3044\u308f\u3086\u308b\u30d7\u30ea\u30da\u30a2\u30fc\u30c9\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u307f\u305f\u3044\u306a\u3001SQL\u3068\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5225\u3005\u306b\u6e21\u3059\u305f\u3081\u306b\u3001DBAPI\u3067\u306f\u4f55\u7a2e\u985e\u304b\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u9078\u3079\u308b\u307f\u305f\u3044\u3067\u3059\u3002\u3067\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306f'pyformat'\u306b\u306a\u3063\u3066\u308b\u307f\u305f\u3044\u3067\u3059\u3002 >>> import psycopg2 >>> psycopg2.paramstyle 'pyformat'pyformat\u306e\u5834\u5408\u306f\u3001execute()\u306e\u6642\u306b\u5024\u3092\u8f9e\u66f8\u3067\u6e21\u3057\u307e\u3059\u3002 >>> con = ps\u2026","title":" DBAPI\u52c9\u5f37\u4e2d","image_url":null,"provider_name":"Hatena Blog","type":"rich","author_name":"pylet"}