<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>MySQL</anon>
  </categories>
  <description>RubyでMySQLとデータのやり取りをしたいと思いました。 gemで探すとライブラリがヒマラヤ程たくさん出ててどれが良いのか良く解りませんでした。。。 こちらの記事を参考に、とりあえずmysql2を使ってみましたのでメモ データを取ってきてループして表示させる require &quot;mysql2&quot; # database 接続 $client = Mysql2::Client.new( :host =&gt; HOST_NAME, :username =&gt; DB_USER, :password =&gt; DB_PASSWORD, :database =&gt; DATABASE_NAME ) sql = %{ S…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2016%2F04%2F01%2F083000&quot; title=&quot;Ruby mysql2のメモ - かもメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn.mogile.archive.st-hatena.com/v1/image/kikiki-kiki/302458533921557245.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-04-01 08:30:00</published>
  <title>Ruby mysql2のメモ</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2016/04/01/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
