sqlite3_commit_hook() private method

private sqlite3_commit_hook ( IntPtr db, SqliteCommitCallback func ) : IntPtr
db System.IntPtr
func SqliteCommitCallback
return System.IntPtr
Example #1
0
 internal override void SetCommitHook(SQLiteCommitCallback func)
 {
     commit_callback = func;
     if (func == null)
     {
         UnsafeNativeMethods.sqlite3_commit_hook(_sql, null, IntPtr.Zero);
     }
     else
     {
         UnsafeNativeMethods.sqlite3_commit_hook(_sql, commit, GCHandle.ToIntPtr(gch));
     }
 }
Example #2
0
 internal override void SetCommitHook(SQLiteCommitCallback func)
 {
     UnsafeNativeMethods.sqlite3_commit_hook(_sql, func, IntPtr.Zero);
 }
Example #3
0
 internal override void SetCommitHook(SqliteCommitHookDelegate func)
 {
     UnsafeNativeMethods.sqlite3_commit_hook(_sql, func, null);
 }