package pgx_async

  1. Overview
  2. Docs

Module Pgx_async_testSource

Testing library for code that uses postgres

Sourceval set_to_default_db : unit -> unit
Sourcetype 'a new_db_callback = Pgx_async.t -> db_name:string -> 'a Async_kernel.Deferred.t

with_temp_db f creates a temporary database and executes f with a database handle to this db and the name of the db. Once f executes or raises, the temp database will be deleted.

OCaml

Innovation. Community. Security.