public static void ThrowIfNotOk(SafeSqliteHandle handle, Result result) { if (result != Result.OK) { Throw(handle, result); } }
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)));
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))); }
private SqlConnection(SafeSqliteHandle handle, IPersistentStorageFaultInjector?faultInjector, Dictionary <string, SqlStatement> queryToStatement) { _handle = handle; _faultInjector = faultInjector; _queryToStatement = queryToStatement; }
private SqlConnection(SafeSqliteHandle handle, Dictionary <string, SqlStatement> queryToStatement) { _handle = handle; _queryToStatement = queryToStatement; }