SQLITE_INT64(3) | Library Functions Manual | SQLITE_INT64(3)

# NAME

`sqlite_int64`, `sqlite_uint64`, `sqlite_uint64`, `sqlite_int64`, `sqlite_uint64`, `sqlite_int64`, `sqlite_uint64`, `sqlite3_int64`, `sqlite3_uint64` — 64-Bit integer types

# SYNOPSIS

`#include <sqlite3.h>`

typedef SQLITE_INT64_TYPE sqlite_int64;
typedef SQLITE_UINT64_TYPE sqlite_uint64;
typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;
typedef __int64 sqlite_int64;
typedef unsigned __int64 sqlite_uint64;
typedef long long int sqlite_int64;
typedef unsigned long long int sqlite_uint64;
typedef sqlite_int64 sqlite3_int64;
typedef sqlite_uint64 sqlite3_uint64;

# DESCRIPTION

Because there is no cross-platform way to specify 64-bit integer types SQLite includes typedefs for 64-bit signed and unsigned integers.

The sqlite3_int64 and sqlite3_uint64 are the preferred type definitions. The sqlite_int64 and sqlite_uint64 types are supported for backwards compatibility only.

The sqlite3_int64 and sqlite_int64 types can store integer values between -9223372036854775808 and +9223372036854775807 inclusive. The sqlite3_uint64 and sqlite_uint64 types can store integer values between 0 and +18446744073709551615 inclusive.

# IMPLEMENTATION NOTES

These declarations were extracted from the interface documentation at line 275.

    #ifdef SQLITE_INT64_TYPE
      typedef SQLITE_INT64_TYPE sqlite_int64;
    # ifdef SQLITE_UINT64_TYPE
        typedef SQLITE_UINT64_TYPE sqlite_uint64;
    # else
        typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;
    # endif
    #elif defined(_MSC_VER) || defined(__BORLANDC__)
      typedef __int64 sqlite_int64;
      typedef unsigned __int64 sqlite_uint64;
    #else
      typedef long long int sqlite_int64;
      typedef unsigned long long int sqlite_uint64;
    #endif
    typedef sqlite_int64 sqlite3_int64;
    typedef sqlite_uint64 sqlite3_uint64;

January 24, 2024 | NetBSD 11.0