package sihl
The modular functional web framework
Install
Dune Dependency
Authors
Maintainers
Sources
sihl-queue-0.1.6.tbz
sha256=574c73c97ea0bc57144853b28df6125855a040ef0378f3bf180b4331dde93f9d
sha512=92c474ed3b6609395799f77259fc424af37dcad53095773ca2f2cdd4757a1607a5b53b6594cd7b6ddabeb40ebba67bb9544ff0f31dc228c87cfe015afa520aaa
doc/sihl.database/Database/Service/index.html
Module Database.Service
Source
include Core.Container.Service.Sig
Creates and returns a database connection pool. Re-uses an already created pool. Raises Data_db_core.Exception
.
Source
val query :
Core.Ctx.t ->
(Caqti_lwt.connection -> ('a, Caqti_error.t) Result.t Lwt.t) ->
'a Lwt.t
Run a database query.
The context has to contain a database connection or a database connection pool.
Run a database query atomically on a connection.
The context has to contain a database connection or a database connection pool. Fetch a database connection from context if necessary to make sure, that every query runs on the same connection.
Disables foreign key checks if supported by the database.
Use very carefully, data might become inconsistent!
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>