Fun_sql.Query_sigConvenience for formatting query strings with placeholders. Eg
sql "select name from people where id = %a" placeholder 0val unit : ('row, unit) retunit indicates that the query doesn't return any meaningful output.
val ret : ('row -> 'r) -> ('row, 'r Stdlib.Seq.t) retret decode is a custom return type encoding for a resultset into a sequence of values of the type decoded by decode.
decode constructs a value of the custom type if possible, else raises Failure.
Note that the sequence rows of the resultset is unfolded as it is read from the database. It can only be traversed once, with e.g. List.of_seq or Seq.iter. If traversed multiple times, it will raise Failure.