Connection_utils.Make_populate
Sourcemodule Sys : System_sig.S
module _ :
Caqti_connection_sig.Base
with type 'a fiber := 'a Sys.Fiber.t
and type ('a, 'err) stream := ('a, 'err) Sys.Stream.t
val populate :
table:string ->
columns:string list ->
'a Caqti_type.t ->
('a, 'err) Sys.Stream.t ->
(unit, [> Caqti_error.call_or_retrieve | `Congested of 'err ]) result
Sys.Fiber.t
populate table columns row_type seq
inputs the contents of seq
into the database in whatever manner is most efficient as decided by the driver.