{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkarlley.hatenablog.jp%2Fentry%2F2022%2F08%2F12%2F050646\" title=\"pg\u3067PostgreSQL\u306b\u63a5\u7d9a\u3059\u308b - \u6642\u3005\u3068\u304a\u307e\u308f\u308a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Sinatra\u306e\u30e1\u30e2\u30a2\u30d7\u30ea\u3092DB\u5316\u3059\u308b\u306b\u3042\u305f\u308apg gem\u3092\u4f7f\u3044PostgreSQL\u306b\u63a5\u7d9a\u3057SQL\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u8abf\u3079\u307e\u3057\u305f\u3002 \u7d50\u8ad6 \u6b21\u306e\u624b\u9806\u3067pg gem\u3067PostgreSQL\u3078\u63a5\u7d9a\u3057SQL\u3092\u5b9f\u884c\u3067\u304d\u308b\u3002 PostgreSQL\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306ePG\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3002 \u4f5c\u6210\u3057\u305fPG\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089SQL\u3092\u5b9f\u884c\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3002 require 'pg' # PG\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u3001SQL\u5b9f\u884c connection = PG::Connection.new(dbname: 'memo_app') all_memos = connection.exec('SELECT * FROM memos\u2026","type":"rich","url":"https://karlley.hatenablog.jp/entry/2022/08/12/050646","author_url":"https://blog.hatena.ne.jp/karlley_jp/","height":"190","version":"1.0","provider_name":"Hatena Blog","published":"2022-08-12 05:06:46","width":"100%","provider_url":"https://hatena.blog","categories":["PostgreSQL","Gem","DB"],"title":"pg\u3067PostgreSQL\u306b\u63a5\u7d9a\u3059\u308b","blog_url":"https://karlley.hatenablog.jp/","blog_title":"\u6642\u3005\u3068\u304a\u307e\u308f\u308a","image_url":null,"author_name":"karlley_jp"}