PetrolSourceUniquely identifies a table in the system.
Provides a helper interface, primarily for prototyping/debugging, that declares a static table without any versioning.
Provides an interface that declares a versioned schema.
val exec :
(module Caqti_lwt.CONNECTION) ->
(unit, [< `Zero ]) Request.t ->
(unit, [> Caqti_error.call_or_retrieve ]) result Lwt.texec db req executes a unit SQL request req on the SQL database db.
val find :
(module Caqti_lwt.CONNECTION) ->
('a, [< `One ]) Request.t ->
('a, [> Caqti_error.call_or_retrieve ]) result Lwt.tfind db req executes a singleton SQL request req on the SQL database db returning the result.
val find_opt :
(module Caqti_lwt.CONNECTION) ->
('a, [< `One | `Zero ]) Request.t ->
('a option, [> Caqti_error.call_or_retrieve ]) result Lwt.tfind_opt db req executes a zero-or-one SQL request req on the SQL database db returning the result if it exists.
val collect_list :
(module Caqti_lwt.CONNECTION) ->
('a, [< `Many | `One | `Zero ]) Request.t ->
('a list, [> Caqti_error.call_or_retrieve ]) result Lwt.tcollect_list db req executes a SQL request req on the SQL database db and collects the results into a list.