wip int64 timestamp

This commit is contained in:
swrup 2025-12-07 08:51:42 +01:00
parent 32fa5b1fc3
commit 12a384a33a
8 changed files with 49 additions and 28 deletions

View file

@ -20,9 +20,10 @@ module Caqti_type = struct
Amount.make ~sign:None ~currency:Config.currency ~value ~fraction)
(t2 int64 int32)
(* we want to use int64 timestamps,
(* ! do not use ptime
we want to use int64 timestamps,
not postgresql built-in timestamp type *)
let ptime : Ptime.t option t = Timestamp.caqti
let ptime : unit t = Caqti_type.unit
let time = Timestamp.caqti
let age_mask : int t = Caqti_type.int
let rsa_public = RsaPublicKey.caqti