package caqti
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Unified interface to relational database libraries
Install
dune-project
Dependency
Authors
Maintainers
Sources
caqti-v3.0.0.tbz
sha256=3ceea06ba0e8e8bcab0386b5817b68cb30fce457eaa25ada0182891d66f6a0b9
sha512=e01f546a45b04cafd5fa262e9228e5a1aabd5e0942059c073a4181c928450baf3d990cc59ffb1a33dff445b46a0e218224a23dca96e8d24cdd0ab793d08e4538
doc/src/caqti.classic/caqti_request.ml.html
Source file caqti_request.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60(* Copyright (C) 2024--2026 Petter A. Urkedal <paurkedal@gmail.com> * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your * option) any later version, with the LGPL-3.0 Linking Exception. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public License * and the LGPL-3.0 Linking Exception along with this library. If not, see * <http://www.gnu.org/licenses/> and <https://spdx.org>, respectively. *) [@@@alert "-caqti_private"] open Caqti.Template include Request let create ?(oneshot = false) pt rt rm make_query = create (if oneshot then Direct else Static) (pt, rt, rm) (fun dialect -> make_query (Caqti.Private__driver_info.of_dialect dialect)) let query req driver_info = let qs = queries req (Caqti.Private__driver_info.dummy_dialect driver_info) in Query.concat ~sep:"; " qs module Infix = struct let (-->.) t u ?oneshot f = create ?oneshot t u Row_mult.zero f let (-->!) t u ?oneshot f = create ?oneshot t u Row_mult.one f let (-->?) t u ?oneshot f = create ?oneshot t u Row_mult.zero_or_one f let (-->*) t u ?oneshot f = create ?oneshot t u Row_mult.zero_or_more f let (@:-) f s = let q = Caqti_query.of_string_exn s in f (fun _ -> q) let (@@:-) f g = f (fun d -> Caqti_query.of_string_exn (g (Caqti_driver_info.dialect_tag d))) let (->.) t u ?oneshot s = create ?oneshot t u Row_mult.zero @:- s let (->!) t u ?oneshot s = create ?oneshot t u Row_mult.one @:- s let (->?) t u ?oneshot s = create ?oneshot t u Row_mult.zero_or_one @:- s let (->*) t u ?oneshot s = create ?oneshot t u Row_mult.zero_or_more @:- s end let no_env _ _ = raise Not_found let make_pp ?(env = no_env) ?(driver_info = Caqti_driver_info.dummy) () = let dialect = Caqti.Private__driver_info.dummy_dialect driver_info in make_pp ~subst:(env driver_info) ~dialect () let make_pp_with_param ?(env = no_env) ?(driver_info = Caqti_driver_info.dummy) () = let dialect = Caqti.Private__driver_info.dummy_dialect driver_info in make_pp_with_param ~subst:(env driver_info) ~dialect ()
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>