Closed rawleyfowler closed 1 year ago
The tupN
combinators can be nested. See https://github.com/paurkedal/ocaml-caqti/issues/47#issuecomment-704650179
Yes, nesting is the only way to handle more than 4 columns with the current interface.
Okay, that makes sense. So basically:
let _t = Caqti_type.(tup2 (tup3 string string string) (tup2 ptime ptime))
Thanks!
Thank you for this amazing package. I am following the example in the
examples
directory, but I cannot figure out how to create a type that doesn't fall withintup2 tup3 or tup4
for example if I had a type:How can I use this type with Caqti, if the type didn't have
created_at
orupdated_at
I could write it like:How can I declare a record type that is larger than tup4?