private sqlite3_close ( |
||
db | ||
return | int |
internal static void CloseConnection(SqliteConnectionHandle db) { lock (_lock) { ResetConnection(db); int n = UnsafeNativeMethods.sqlite3_close(db); if (n > 0) { throw new SqliteException(n, SQLiteLastError(db)); } } }
internal override void Close() { if (_sql != IntPtr.Zero) { int n = UnsafeNativeMethods.sqlite3_close(_sql); if (n > 0) { throw new SqliteException(n, SqliteLastError()); } } _sql = IntPtr.Zero; }
internal static void CloseConnection(SqliteConnectionHandle db) { lock (_lock) { #if !SQLITE_STANDARD int n = UnsafeNativeMethods.sqlite3_close_interop(db); #else ResetConnection(db); int n = UnsafeNativeMethods.sqlite3_close(db); #endif if (n > 0) { throw new SqliteException(n, SQLiteLastError(db)); } } }