<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shindo1687</author_name>
  <author_url>https://blog.hatena.ne.jp/shindo1687/</author_url>
  <blog_title>ITエンジニアの備忘録</blog_title>
  <blog_url>https://www.wired-cat.com/</blog_url>
  <categories>
    <anon>SQLite3</anon>
  </categories>
  <description>現在SQLite3のトランザクションが開始されているかどうかを判断するには、get_autocommit()を使用する。 トランザクションが開始されている場合: 自動コミットが無効になるので0が返る。 トランザクションが開始されていない場合: 自動コミットが有効になるので0以外が返る。 www.sqlite.org 使用例 SQLite3でトランザクションを二重に開始するとエラーが発生するため、呼び出し元ですでにトランザクションが開始されている可能性がある場合は以下のようにチェックして必要であればトランザクションを開始する。 void example(sqlite3* db) { char* …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wired-cat.com%2Fentry%2F2020%2F04%2F02%2F231418&quot; title=&quot;SQLite3: トランザクションが開始されているかどうかを判断する - ITエンジニアの備忘録&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>2020-04-02 23:14:18</published>
  <title>SQLite3: トランザクションが開始されているかどうかを判断する</title>
  <type>rich</type>
  <url>https://www.wired-cat.com/entry/2020/04/02/231418</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
