oatpp-postgresql
oatpp-postgresql copied to clipboard
How to use timestamp type?
I can't find the timestamp type, use the Uint64 type, but it dosen't wok,time value is wrong.
You can use <!! EXTRACT(epoch FROM "my_time_column")::bigint !!> in your query to get the timestamp as unixtime in a int64.
But getting it as std::chrono::time_point object or similar would be nice. Or something that the explicit cast is not necessary.