<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>utgwkk</author_name>
  <author_url>https://blog.hatena.ne.jp/utgwkk/</author_url>
  <blog_title>私が歌川です</blog_title>
  <blog_url>https://blog.utgw.net/</blog_url>
  <categories>
    <anon>技術</anon>
    <anon>アドベントカレンダー</anon>
    <anon>Go</anon>
  </categories>
  <description>はじめに これは Go - Qiita Advent Calendar 2024 - Qiita の記事です。 tl;dr goquでMySQLのクエリを組み立てるとき、BOOLEAN型のカラムの値を比較するとき Eq メソッドなどや goqu.Ex 型にGoのbool型の値を渡さない IsTrue IsFalse メソッドを使わない MySQLでは、BOOLEAN型のカラムを IS 演算子で比較するとインデックスが効かなくなる したがって、以下のいずれかの方法を取るべき 1 (真) もしくは 0 (偽) と比較する (整数値を使う場合) goqu.L(&quot;TRUE&quot;) もしくは goqu.L(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2024%2F12%2F17%2F214954&quot; title=&quot;goquでMySQLのクエリを組み立てるときはBOOLEAN型の比較先にGoのbool値を使わない / goqumysqllinterというlinterを書いた - 私が歌川です&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>2024-12-17 21:49:54</published>
  <title>goquでMySQLのクエリを組み立てるときはBOOLEAN型の比較先にGoのbool値を使わない / goqumysqllinterというlinterを書いた</title>
  <type>rich</type>
  <url>https://blog.utgw.net/entry/2024/12/17/214954</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
