package caqti
Abstraction over multiple database libraries
Install
Dune Dependency
Authors
Maintainers
Sources
caqti-0.9.0.tbz
sha256=4c84a16d983d0fed2786f536a3fa4d8fa113b8b30b4deea4a74772582d5489b2
md5=42a2e2d3b73d7fbaecc618549aad2865
doc/caqti/Caqti_sql/index.html
Module Caqti_sql
Source
SQL utility functions.
Note. Since real databases generally do not implement the precise same escaping mechanisms, and discrepancies between the escape function and the database can lead to SQL injection, the standard SQL escaping functions provided below are hardly useful for real applications.
bprint_sql_escaped buf s
adds an s
to buf
with any single quoted doubled according to the standard SQL escaping rule.
bprint_sql_quoted buf s
adds s
to buf
as an SQL-quoted string. Same as bprint_sql_escaped
, except surrounded by single quotes.
sql_escaped s
is s
with single-quotes doubled according to the standard SQL escaping rule.
sql_quoted s
is sql_escaped s
between a pair of single quotes.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>