aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-05-07 01:29:02 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-05-07 01:29:02 +0000
commit1c881694d4b26be62757a6a7211734eb418d407d (patch)
tree1284226b37adee9c68a2087b83144a50d4917b73 /lib
parentffc7397cfa59c19577f7f0ea38a0041dbdc43147 (diff)
downloadSakura-1c881694d4b26be62757a6a7211734eb418d407d.tar.gz
Sakura-1c881694d4b26be62757a6a7211734eb418d407d.zip
Drop `begin_transaction`, add `abort`
Diffstat (limited to 'lib')
-rw-r--r--lib/management/physical.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/management/physical.ml b/lib/management/physical.ml
index 717c643..9b198fb 100644
--- a/lib/management/physical.ml
+++ b/lib/management/physical.ml
@@ -29,12 +29,12 @@ module type BACKEND = sig
val exists : connection -> Conventions.Hash.t -> (bool, error) result
(** Check if a hash exists *)
- val begin_transaction : connection -> (unit, error) result
- (** Begin a transaction *)
-
val with_transaction : connection -> (unit -> 'a) -> ('a option, error) result
(** Execute a function within a transaction *)
+ val abort : connection -> unit
+ (** Abort the currently executing transaction. This performs a non-local transfer of control to the nearest `with_transaction` *)
+
val get_many :
connection -> Conventions.Hash.t BatEnum.t -> (bytes option BatEnum.t, error) result
(** Batch get multiple values *)