package caqti
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9524c75c87677eb75e68fbbf421d84b7b610bf2f344bfa227e23465644e62e26
sha512=8c1f289d269d0017bf8b489e64c1153448c62f79a991349662722f4de74c0cbbd75dcdca266b7276af55200346d38dce8135da247e5fbc235a3660785a03b01f
doc/caqti/Caqti_query/index.html
Module Caqti_querySource
Query specification.
type t = | L of string(*Literal code. May contain incomplete fragments.
*)| Q of string(*
*)Q scorresponds to aTEXTliteral; passed as part of the query string if a suitable quoting function is available in the client library, otherwise passed as an additional parameter.| P of int(*
*)P irefers to parameter numberi, counting from 0.| S of t list(*
*)S fragsis the concatenation offrags.
A representation of a query string to send to a database, abstracting over parameter references and providing nested concatenation to simplify generation. For databases which only support linear parameters (typically denoted "?"), the driver will reshuffle, elide, and duplicate parameters as needed.
A hash function compatible with equal. This is currently Hashtbl.hash.
pp ppf q prints a human-readable representation of q on ppf. The printed string is not suitable for sending to an SQL database; doing so may lead to an SQL injection vulnerability.
show q is the same human-readable representation of q as printed by pp. The returned string is not suitable for sending to an SQL database; doing so may lead to an SQL injection vulnerability.