split binary_types + clean up
This commit is contained in:
parent
9fe1d76dc4
commit
0c5622324c
8 changed files with 449 additions and 515 deletions
12
src/util.ml
12
src/util.ml
|
|
@ -1,14 +1,8 @@
|
|||
module Protocol_version = struct
|
||||
(* TODO *)
|
||||
(* libtool version format *)
|
||||
let current = 0
|
||||
let revision = 0
|
||||
let age = 0
|
||||
let v = Fmt.str "%d:%d:%d"
|
||||
end
|
||||
|
||||
(* -- Ptime -- *)
|
||||
|
||||
(* TODO have a Time.t = int64
|
||||
-> avoid having conversion everywhere
|
||||
-> avoid using Caqti_type.ptime *)
|
||||
let ptime_to_int64 ptime = ptime |> Ptime.to_float_s |> Int64.of_float
|
||||
|
||||
let ptime_of_int64 i =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue