Пример #1
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));
                }
            }
        }