예제 #1
0
 public static void ThrowIfNotOk(SafeSqliteHandle handle, Result result)
 {
     if (result != Result.OK)
     {
         Throw(handle, result);
     }
 }
예제 #2
0
 public static void Throw(SafeSqliteHandle handle, Result result)
 => throw new SqlException(result,
                           NativeMethods.sqlite3_errmsg(handle) + Environment.NewLine +
                           NativeMethods.sqlite3_errstr(NativeMethods.sqlite3_extended_errcode(handle)));
예제 #3
0
 public static void Throw(SafeSqliteHandle handle, Result result)
 {
     throw new SqlException(result,
                            NativeMethods.sqlite3_errmsg(handle) + "\r\n" +
                            NativeMethods.sqlite3_errstr(NativeMethods.sqlite3_extended_errcode(handle)));
 }
예제 #4
0
 private SqlConnection(SafeSqliteHandle handle, IPersistentStorageFaultInjector?faultInjector, Dictionary <string, SqlStatement> queryToStatement)
 {
     _handle           = handle;
     _faultInjector    = faultInjector;
     _queryToStatement = queryToStatement;
 }
예제 #5
0
 private SqlConnection(SafeSqliteHandle handle, Dictionary <string, SqlStatement> queryToStatement)
 {
     _handle           = handle;
     _queryToStatement = queryToStatement;
 }