Alternate e697dbe9c5997e35395fe158628dd8c5209481da
for Visual Studio 2022 and Windows 11.
読み取り中…
検索中…
一致する文字列を見つけられません
alt::db::Engine クラス

SqLite3操作クラス(Engine) [詳解]

#include <Engine.h>

alt::db::Engine の継承関係図
alt::db::Core

公開メンバ関数

 Engine ()
 コンストラクタ
 
virtual ~Engine ()
 デストラクタ
 
bool BeginTransaction ()
 トランザクション開始
 
bool Close ()
 DBファイルのクローズ
 
bool CommitTransaction ()
 トランザクションコミット
 
bool Create (LPCTSTR lpctszDBName)
 DBファイルの作成・オープン
 
bool Execute (LPCSTR lpcszSQL)
 SQLステートメント実行
 
sqlite3GetEngine ()
 エンジン部を取得
 
LPCTSTR GetErrorMessage ()
 エラーメッセージの取得
 
ULONGLONG GetLastRowID ()
 最後の実行時のROWIDを取得
 
bool RollbackTransaction ()
 トランザクションロールバック
 
bool Vacuum ()
 空き領域の整理
 
- 基底クラス alt::db::Core に属する継承公開メンバ関数
 Core ()
 コンストラクタ
 
virtual ~Core ()
 デストラクタ
 

限定公開変数類

sqlite3_engine
 SQLite3コンテキスト
 
- 基底クラス alt::db::Core に属する継承限定公開変数類
int _lastError
 SQLite3関数エラー値
 

その他の継承メンバ

- 基底クラス alt::db::Core に属する継承限定公開メンバ関数
bool getResponse ()
 各関数の戻り値判定共通
 

詳解

SqLite3操作クラス(Engine)

Engine.h18 行目に定義があります。

構築子と解体子

◆ Engine()

alt::db::Engine::Engine ( )
inline

コンストラクタ

Engine.h22 行目に定義があります。

参照先 _engine, alt::db::Core::_lastError, SQLITE_OK.

◆ ~Engine()

virtual alt::db::Engine::~Engine ( )
inlinevirtual

デストラクタ

Engine.h30 行目に定義があります。

参照先 _engine, Close().

関数詳解

◆ BeginTransaction()

bool alt::db::Engine::BeginTransaction ( )
inline

トランザクション開始

Engine.h66 行目に定義があります。

参照先 Execute().

参照元 DBLibraryTest::TEST_CLASS().

◆ Close()

bool alt::db::Engine::Close ( )
inline

DBファイルのクローズ

Engine.h50 行目に定義があります。

参照先 _engine, alt::db::Core::_lastError, alt::db::Core::getResponse(), sqlite3_close().

参照元 ~Engine(), DBLibraryTest::TEST_CLASS().

◆ CommitTransaction()

bool alt::db::Engine::CommitTransaction ( )
inline

トランザクションコミット

Engine.h72 行目に定義があります。

参照先 Execute().

参照元 DBLibraryTest::TEST_CLASS().

◆ Create()

bool alt::db::Engine::Create ( LPCTSTR  lpctszDBName)
inline

DBファイルの作成・オープン

引数
[in]lpctszDBNameデータベースファイル名

Engine.h43 行目に定義があります。

参照先 _engine, alt::db::Core::_lastError, alt::db::Core::getResponse(), sqlite3_open16().

参照元 DBLibraryTest::TEST_CLASS().

◆ Execute()

bool alt::db::Engine::Execute ( LPCSTR  lpcszSQL)
inline

SQLステートメント実行

引数
[in]lpcszSQLSQLステートメント

Engine.h59 行目に定義があります。

参照先 _engine, alt::db::Core::_lastError, alt::db::Core::getResponse(), sqlite3_exec().

参照元 BeginTransaction(), CommitTransaction(), RollbackTransaction(), DBLibraryTest::TEST_CLASS(), Vacuum().

◆ GetEngine()

sqlite3 * alt::db::Engine::GetEngine ( )
inline

エンジン部を取得

Engine.h96 行目に定義があります。

参照先 _engine.

参照元 alt::db::Statement::Prepare().

◆ GetErrorMessage()

LPCTSTR alt::db::Engine::GetErrorMessage ( )
inline

エラーメッセージの取得

Engine.h36 行目に定義があります。

参照先 _engine, sqlite3_errmsg16().

参照元 DBLibraryTest::TEST_CLASS().

◆ GetLastRowID()

ULONGLONG alt::db::Engine::GetLastRowID ( )
inline

最後の実行時のROWIDを取得

Engine.h90 行目に定義があります。

参照先 _engine.

参照元 DBLibraryTest::TEST_CLASS().

◆ RollbackTransaction()

bool alt::db::Engine::RollbackTransaction ( )
inline

トランザクションロールバック

Engine.h78 行目に定義があります。

参照先 Execute().

◆ Vacuum()

bool alt::db::Engine::Vacuum ( )
inline

空き領域の整理

Engine.h84 行目に定義があります。

参照先 Execute().

メンバ詳解

◆ _engine

sqlite3* alt::db::Engine::_engine
protected

SQLite3コンテキスト

Engine.h103 行目に定義があります。

参照元 Engine(), ~Engine(), Close(), Create(), Execute(), GetEngine(), GetErrorMessage(), GetLastRowID().


このクラス詳解は次のファイルから抽出されました: