SQLITE_LOCKED_VTAB 結果コードは SQLite コアでは使用されませんが、拡張機能では使用できます。仮想テーブルの実装は、他のスレッドまたはプロセスによってロックが保持されているために現在の操作を完了できないことを示すために、この結果コードを返すことができます。
R ツリー拡張機能は、別のプリペアド ステートメントが R ツリーをアクティブに読み取っているときに R ツリーを更新しようとすると、この結果コードを返します。 R ツリーへの変更にはノードの再シャッフルと再バランスが含まれる可能性があり、読み取りカーソルが中断され、一部の行が繰り返され、他の行が省略されるため、更新を続行できません。
Google Translate · 自動翻訳です。専門用語や適用条件は英語の原文で確認してください。
公式の説明 · 原文
The SQLITE_LOCKED_VTAB result code is not used by the SQLite core, but it is available for use by extensions. Virtual table implementations can return this result code to indicate that they cannot complete the current operation because of locks held by other threads or processes.
The R-Tree extension returns this result code when an attempt is made to update the R-Tree while another prepared statement is actively reading the R-Tree. The update cannot proceed because any change to an R-Tree might involve reshuffling and rebalancing of nodes, which would disrupt read cursors, causing some rows to be repeated and other rows to be omitted.
変更内容: English prose extracted; whitespace normalized; Korean context and classified official links added. Python code examples not redistributed. 翻訳された説明には、自動翻訳であることを表示しています。