示例#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;
 }