SQLite接続. [詳細]
Public メソッド | |
SQLiteConnection () | |
コンストラクタ | |
SQLiteConnection (string connectstring) | |
コンストラクタ | |
void | ChangeDatabase (string databaseName) |
データベース変更 ※未サポート | |
IDbTransaction | BeginTransaction (IsolationLevel il) |
トランザクション開始 ※トランザクション動作は、未サポート | |
IDbTransaction | BeginTransaction () |
トランザクション開始 | |
IDbCommand | CreateCommand () |
コマンド作成 | |
void | Open () |
SQLite接続. | |
void | Close () |
切断 | |
new void | Dispose () |
デストラクタ | |
long | getLastInsertROWID () |
最終追加ROWID取得 | |
ResultEnum | CreateFunction (string funcname, int inArg, ICallUserFunction iCallinterface) |
ユーザ定義関数作成 | |
ResultEnum | CreateCollation (string funcname, ICollationFunction iCallinterface) |
ユーザ定義照合順序関数作成 | |
Protected 変数 | |
OSQLiteDBWrap | m_db = null |
データベース | |
string | m_connectstring = "" |
接続文字列 ※単純にファイル名 | |
ArrayList | m_userfunclist = new ArrayList() |
ユーザ定義関数リスト | |
ArrayList | m_usercollationlist = new ArrayList() |
ユーザ定義照合順序関数リスト | |
プロパティ | |
ConnectionState | State [get] |
接続状態プロパティ | |
string | ConnectionString [get, set] |
接続文字列プロパティ | |
string | Database [get] |
データベース名プロパティ SQLiteのバージョン情報を取得します。 | |
int | ConnectionTimeout [get] |
接続タイムアウトプロパティ ※未サポート |
SQLite接続.
SQLiteConnection.cs の 13 行で定義されています。
SQLiteCSLib.SQLiteConnection.SQLiteConnection | ( | ) |
SQLiteCSLib.SQLiteConnection.SQLiteConnection | ( | string | connectstring | ) |
コンストラクタ
connectstring | 接続ファイルパス(存在しない場合、作成します。) |
SQLiteConnection.cs の 49 行で定義されています。
00050 { 00051 ConnectionString = connectstring; 00052 m_db = new OSQLiteDBWrap(); 00053 }
IDbTransaction SQLiteCSLib.SQLiteConnection.BeginTransaction | ( | ) |
IDbTransaction SQLiteCSLib.SQLiteConnection.BeginTransaction | ( | IsolationLevel | il | ) |
トランザクション開始 ※トランザクション動作は、未サポート
il |
SQLiteConnection.cs の 70 行で定義されています。
00071 { 00072 return BeginTransaction(); 00073 }
void SQLiteCSLib.SQLiteConnection.ChangeDatabase | ( | string | databaseName | ) |
void SQLiteCSLib.SQLiteConnection.Close | ( | ) |
ResultEnum SQLiteCSLib.SQLiteConnection.CreateCollation | ( | string | funcname, | |
ICollationFunction | iCallinterface | |||
) |
ユーザ定義照合順序関数作成
funcname | 関数名 | |
iCallinterface | 関数コールバックインターフェース |
SQLiteConnection.cs の 237 行で定義されています。
00238 { 00239 OSQLiteCollation usercollation = new OSQLiteCollation( m_db, iCallinterface ); 00240 m_usercollationlist.Add( usercollation ); 00241 return usercollation.CreateFunction( funcname ); 00242 }
IDbCommand SQLiteCSLib.SQLiteConnection.CreateCommand | ( | ) |
ResultEnum SQLiteCSLib.SQLiteConnection.CreateFunction | ( | string | funcname, | |
int | inArg, | |||
ICallUserFunction | iCallinterface | |||
) |
ユーザ定義関数作成
funcname | 関数名 | |
inArg | 引数の数 | |
iCallinterface | 関数コールバックインターフェース |
SQLiteConnection.cs の 215 行で定義されています。
00216 { 00217 OSQLiteFunc userfunc = new OSQLiteFunc( m_db, iCallinterface ); 00218 m_userfunclist.Add( userfunc ); 00219 return userfunc.CreateFunction( funcname, inArg ); 00220 }
new void SQLiteCSLib.SQLiteConnection.Dispose | ( | ) |
デストラクタ
SQLiteConnection.cs の 177 行で定義されています。
00178 { 00179 Close(); 00180 00181 foreach( OSQLiteFunc userfunc in m_userfunclist ) 00182 { 00183 userfunc.Dispose(); 00184 } 00185 00186 foreach( OSQLiteCollation usercoll in m_usercollationlist ) 00187 { 00188 usercoll.Dispose(); 00189 } 00190 }
long SQLiteCSLib.SQLiteConnection.getLastInsertROWID | ( | ) |
最終追加ROWID取得
SQLiteConnection.cs の 196 行で定義されています。
00197 { 00198 return m_db.getLastInsertROWID(); 00199 }
void SQLiteCSLib.SQLiteConnection.Open | ( | ) |
SQLite接続.
SQLiteConnection.cs の 125 行で定義されています。
00126 { 00127 Close(); 00128 00129 m_db = new OSQLiteDBWrap(); 00130 if( m_db.Open( m_connectstring ) == false ) 00131 { 00132 m_db = null; 00133 00134 throw new DataException( m_db.getLastErrMsg(), null ); 00135 } 00136 }
string SQLiteCSLib.SQLiteConnection.m_connectstring = "" [protected] |
接続文字列 ※単純にファイル名
SQLiteConnection.cs の 24 行で定義されています。
OSQLiteDBWrap SQLiteCSLib.SQLiteConnection.m_db = null [protected] |
データベース
SQLiteConnection.cs の 18 行で定義されています。
ArrayList SQLiteCSLib.SQLiteConnection.m_usercollationlist = new ArrayList() [protected] |
ユーザ定義照合順序関数リスト
SQLiteConnection.cs の 229 行で定義されています。
ArrayList SQLiteCSLib.SQLiteConnection.m_userfunclist = new ArrayList() [protected] |
ユーザ定義関数リスト
SQLiteConnection.cs の 206 行で定義されています。
string SQLiteCSLib.SQLiteConnection.ConnectionString [get, set] |
接続文字列プロパティ
SQLiteConnection.cs の 102 行で定義されています。
int SQLiteCSLib.SQLiteConnection.ConnectionTimeout [get] |
接続タイムアウトプロパティ ※未サポート
SQLiteConnection.cs の 167 行で定義されています。
string SQLiteCSLib.SQLiteConnection.Database [get] |
データベース名プロパティ SQLiteのバージョン情報を取得します。
SQLiteConnection.cs の 155 行で定義されています。
ConnectionState SQLiteCSLib.SQLiteConnection.State [get] |
接続状態プロパティ
SQLiteConnection.cs の 88 行で定義されています。