If no error occurred - `SQLite3::lastErrorCode()` returns `0` (int zero)
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
SQLite3::lastErrorCode — 直近で失敗した SQLite リクエストの結果コードを数値で返す
この関数にはパラメータはありません。
直近で失敗した SQLite リクエストの結果コードを数値で返します。
Codes can be found here: https://sqlite.org/rescode.html