Leosac
0.8.0
Open Source Access Control
|
This is inspired by the boost ODB profile. More...
#include <STDTimePointODB.hpp>
Public Types | |
using | TimePoint = std::chrono::system_clock::time_point |
typedef TimePoint | value_type |
typedef value_type | query_type |
typedef long long | image_type |
Static Public Member Functions | |
static void | set_value (TimePoint &v, image_type i, bool is_null) |
static void | set_image (image_type &i, bool &is_null, const TimePoint &v) |
Static Public Attributes | |
static const long long | neg_inf = -0x7fffffffffffffffLL - 1 |
static const long long | pos_inf = 0x7fffffffffffffffLL |
Static Private Member Functions | |
static TimePoint | pg_epoch () |
Return a timepoint that represents the PGSQL TIMESTAMP epoch. More... | |
This is inspired by the boost ODB profile.
This contains a few copy-paste from the ODB profile.
TIMESTAMP values are stored as micro-seconds since the PostgreSQL epoch 2000-01-01.
Definition at line 45 of file STDTimePointODB.hpp.
typedef long long odb::pgsql::value_traits< std::chrono::system_clock::time_point, id_timestamp >::image_type |
Definition at line 51 of file STDTimePointODB.hpp.
typedef value_type odb::pgsql::value_traits< std::chrono::system_clock::time_point, id_timestamp >::query_type |
Definition at line 50 of file STDTimePointODB.hpp.
using odb::pgsql::value_traits< std::chrono::system_clock::time_point, id_timestamp >::TimePoint = std::chrono::system_clock::time_point |
Definition at line 48 of file STDTimePointODB.hpp.
typedef TimePoint odb::pgsql::value_traits< std::chrono::system_clock::time_point, id_timestamp >::value_type |
Definition at line 49 of file STDTimePointODB.hpp.
|
inlinestaticprivate |
Return a timepoint that represents the PGSQL TIMESTAMP epoch.
(2000/01/01 0:0)
Definition at line 102 of file STDTimePointODB.hpp.
|
inlinestatic |
Definition at line 80 of file STDTimePointODB.hpp.
|
inlinestatic |
Definition at line 59 of file STDTimePointODB.hpp.
|
static |
Definition at line 54 of file STDTimePointODB.hpp.
|
static |
Definition at line 57 of file STDTimePointODB.hpp.