<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>daisuzu</author_name>
  <author_url>https://blog.hatena.ne.jp/daisuzu/</author_url>
  <blog_title>daisuzu's notes</blog_title>
  <blog_url>https://daisuzu.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>データベースをWriterとReaderで分けている時、xorm.ioのEngineGroupを使うことでどちらのDBを使うのかを任せられるようになります。 使い方は通常のNewEngineと似ていて、NewEngineGroupの第2引数に接続先をスライスで渡します。 接続先のスライスは1番目がWriter、2番目以降がReaderになります。 xorm.NewEngineGroup(driverName, []string{dsnWriter, dsnReader}) もしくは既存のEngineを直接渡すこともできます。 この時は第1引数がWriterで第2引数がReaderのスライスです…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaisuzu.hatenablog.com%2Fentry%2F2021%2F09%2F24%2F101332&quot; title=&quot;xorm.EngineGroupで複数のDBをまとめる - daisuzu&amp;#39;s notes&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-09-24 10:13:32</published>
  <title>xorm.EngineGroupで複数のDBをまとめる</title>
  <type>rich</type>
  <url>https://daisuzu.hatenablog.com/entry/2021/09/24/101332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
