opam-version: "2.0"
maintainer: "Petter A. Urkedal <paurkedal@gmail.com>"
homepage: "https://github.com/paurkedal/ocaml-caqti/"
bug-reports: "https://github.com/paurkedal/ocaml-caqti/issues"
dev-repo: "git+https://github.com/paurkedal/ocaml-caqti.git"
license: "LGPL-3.0-only with OCaml-LGPL-linking-exception"

build: [
  ["jbuilder" "build" "-p" name "-j" jobs]
  ["jbuilder" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
  "ocaml" {>= "4.04.0"}
  "caqti" {= "0.11.0"}
  "jbuilder" {>= "1.0+beta19"}
  "ocamlfind"
]
synopsis: "Dynamic linking of Caqti drivers using findlib.dynload."
description: """
This library registers a dynamic linker which will be called when
encoutering an unhandled database URI.  It tries to load a findlib package
named "caqti-driver-<scheme>" where "<scheme>" is the scheme of the URI,
which is expected register a driver for the scheme.

This is a separate package to avoid the dependency on the findlib.dynload
for architectures, like MirageOS, where dynamic linking may be unavailable.
The alternative is to link drivers directly into the application."""
authors: "Petter A. Urkedal <paurkedal@gmail.com>"
url {
  src:
    "https://github.com/paurkedal/ocaml-caqti/releases/download/v0.11.0/caqti-0.11.0.tbz"
  checksum: "md5=f749fd41e5c20d20a315f257f6ec7128"
}
