9#ifndef HEADER_SQLITEPP_VERSION_IFACE_INCLUDED
10#define HEADER_SQLITEPP_VERSION_IFACE_INCLUDED
47 auto val = int(release);
67 auto val = unsigned(_value);
68 unsigned major = val / 1000000;
69 val -= (major * 1000000);
70 unsigned minor = val / 1000;
71 val -= (minor * 1000);
72 unsigned release = val;
73 return {major, minor, release};
77 constexpr int value() const noexcept
129 {
return lhs._value == rhs._value; }
131 {
return lhs._value != rhs._value; }
133 #if defined(DOXYGEN) || __cpp_impl_three_way_comparison >= 201907
135 {
return lhs._value <=> rhs._value; }
138 {
return lhs._value < rhs._value; }
140 {
return lhs._value <= rhs._value; }
142 {
return lhs._value > rhs._value; }
144 {
return lhs._value >= rhs._value; }
#define SQLITE_VERSION_NUMBER
Representation of SQLite version.
Definition version_iface.hpp:37
constexpr sqlite_version(int val)
Construct an instance from an int encoded in SQLite format.
Definition version_iface.hpp:40
static sqlite_version runtime() noexcept
Returns the runtime SQLite version.
Definition version_iface.hpp:93
constexpr int value() const noexcept
Get the stored SQLite version value.
Definition version_iface.hpp:77
static constexpr const char * compile_time_sourceid() noexcept
Returns the compile time SQLite source identifier.
Definition version_iface.hpp:117
static constexpr sqlite_version compile_time() noexcept
Returns the compile time SQLite version.
Definition version_iface.hpp:85
static constexpr const char * compile_time_str() noexcept
Returns the compile time SQLite version as a string.
Definition version_iface.hpp:101
constexpr std::tuple< unsigned, unsigned, unsigned > parts() const noexcept
Break an instance into constituent parts.
Definition version_iface.hpp:65
static constexpr sqlite_version from_parts(unsigned major, unsigned minor, unsigned release)
Construct an instance from major, minor, release parts.
Definition version_iface.hpp:43
static const char * runtime_sourceid() noexcept
Returns the runtime SQLite source identifier.
Definition version_iface.hpp:125
static const char * runtime_str() noexcept
Returns the runtime SQLite version as a string.
Definition version_iface.hpp:108
sqlite3_libversion_number
ThinSQLite++ namespace.
Definition backup_iface.hpp:17