package sihl

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file middleware_db.ml

1
2
3
4
5
6
7
8
module Make (Db : Data.Db.Service.Sig.SERVICE) = struct
  let m () =
    let filter handler ctx =
      let ctx = Db.add_pool ctx in
      handler ctx
    in
    Middleware_core.create ~name:"database" filter
end
OCaml

Innovation. Community. Security.