sqlite3_close() private method

private sqlite3_close ( IntPtr db ) : int
db System.IntPtr
return int
Ejemplo n.º 1
0
 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));
         }
     }
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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));
                }
            }
        }