sqlite3の初心者。
私の理解が間違っている場合は私を訂正しますか?
sqlite3_open(ファイル名、&dbConnection)->
1) This API creates an database [ie: filename], if it does not exists, and sets
the context to dbConnection.
2) If the database exists already it just sets the context to dbConnection.
(1)と(2)のどちらの場合もSQLITE_OKを返します。
質問:データベースが最初に作成された場合にフィルタリングする可能性はありますか?
例:sqlite3_open(...)if(初めてデータベースを作成した){テーブルを作成}
1つの可能性はファイルの存在を確認することですが、私はそれをしたくありません。sqlite3自体からの代替方法はありますか?