package pgx_async

  1. Overview
  2. Docs
Pgx_async - Pgx using Async for IO

Install

Dune Dependency

Authors

Maintainers

Sources

pgx-0.1.tbz
sha256=7c2f6dc86e2ad75b6119281b8db4509d60dce12d4c9de3d8fa7ccd43aa61c273
md5=b659449513e1b70b7a67a954d115d246

doc/pgx_async/Pgx_async_test/index.html

Module Pgx_async_test

Testing library for code that uses postgres

val set_to_default_db : unit -> unit
type 'a new_db_callback = Pgx_async.t -> db_name:string -> 'a Async.Deferred.t
val with_temp_db : 'a new_db_callback -> 'a Async.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.