<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kouki_dan</author_name>
  <author_url>https://blog.hatena.ne.jp/kouki_dan/</author_url>
  <blog_title>Lento con forza</blog_title>
  <blog_url>https://kouki.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>ここ最近ずっとSQLAlchemyを使ってます。 ORM使っても、結局SQL考えながら書くし、今までSQL使ってた人に取っては、「SQLだったらこう書くのにORMだとわからん！！！：ってのが多発してすごく大変です。 まぁ、そんなことはどうでもいいので本題へ！ SQLite3はデフォルトで外部キー制約が無効 SQLite3ってデフォルトでは外部キー制約が無効なんですよね。 SQLAlchemyで生成されたSQLではFOREIGN KEY制約がついていたのですが、これだけではダメで明示的に外部キーを利用することを伝えてあげないとあげないとダメみたいです。 僕はSQLiteで開発しつつ、本番はMyS…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkouki.hatenadiary.com%2Fentry%2F2014%2F05%2F21%2F211413&quot; title=&quot;SQLAlchemyでsqlite3の外部キー制約を有効にする方法 - Lento con forza&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>2014-05-21 21:14:13</published>
  <title>SQLAlchemyでsqlite3の外部キー制約を有効にする方法</title>
  <type>rich</type>
  <url>https://kouki.hatenadiary.com/entry/2014/05/21/211413</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
