From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YD32AgPgJGbxHQEAqHPOHw:P1 (envelope-from ) for ; Sun, 21 Apr 2024 11:44:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YD32AgPgJGbxHQEAqHPOHw (envelope-from ) for ; Sun, 21 Apr 2024 11:44:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713692674; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=uAdzEKGzr5c59/opZaYdqsbV4BjDDmFbAekUg2LX+9I=; b=Y+aJ31br0eTCLFKT8nYsY5kEbsJv8Y3LXz+Y88YDonzN4LUb75yx6r60k7VFnh7SnwVnVg kxrDd4mAaaFLEpExqwzTaOfmZk/anjakUsJ7lPWTeHPForC2XncqTyAQ0rPwjN3gQCnohN yTFemC9iWw4RHC0dj5YqhJsrEg8+jvT6xKwQdzv+SiMm+9rHdTk7ai0vKL+Av3rg427QoB kCv8BMg8gF21fyn8GexVEmPtr0z4qaENnaBOeR5DbFG0q2uZZ+hSxqGHUoj3aooDWkCXwf 4X3AKuC/ubXFJDqNtQWRsIFA+KeH8OMTefQPaV6P06ei3wZ3PDHc4b2iwVc+ng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713692674; a=rsa-sha256; cv=none; b=jRgLJ5VbgrhvZ9FAy/ozRdfLIVEv6p9CqEORm/ab5OLbdGYGHZXlXuWIpJClIDjYM3AfuH 0PByHzVM73JGJnQbWKuKjptxxqthoVfrpiZ/xEYpY5FMG5mwE11SH5nYSMvzyVcNjlS1X3 0v1A1w2/FIPlT2rSBtJUlErGJlFtB1Nyu1s93jlGENUl3ZcSdHksbEZX39l17kVbzkqLNC dR8qEBvb2BYdHkJE4GWF+IUJJfDAoIB/WOSYaS+HIsCvAmuC8mygDfYsVw4AT7zUCLSjfo RqeXWP3Tj2jZsn3qyMW2OSE1wHlgJ0hlsdR494u0sN6e9wBuWcgZQuxgxu2wBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DCA4853544 for ; Sun, 21 Apr 2024 11:44:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryTjz-0005YC-3E; Sun, 21 Apr 2024 05:44:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryTjm-0005S0-OE for guix-patches@gnu.org; Sun, 21 Apr 2024 05:43:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryTjm-0002pK-Bs; Sun, 21 Apr 2024 05:43:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryTjz-0006V8-KY; Sun, 21 Apr 2024 05:44:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70494] [PATCH 17/23] store: database: Export transaction helpers. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Sun, 21 Apr 2024 09:44:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70494 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70494@debbugs.gnu.org Cc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 70494-submit@debbugs.gnu.org id=B70494.171369262424653 (code B ref 70494); Sun, 21 Apr 2024 09:44:07 +0000 Received: (at 70494) by debbugs.gnu.org; 21 Apr 2024 09:43:44 +0000 Received: from localhost ([127.0.0.1]:41778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryTja-0006PH-E5 for submit@debbugs.gnu.org; Sun, 21 Apr 2024 05:43:43 -0400 Received: from mira.cbaines.net ([212.71.252.8]:43372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryTiz-0006IR-SW for 70494@debbugs.gnu.org; Sun, 21 Apr 2024 05:43:08 -0400 Received: from localhost (unknown [IPv6:2a02:6b67:d93b:1:254c:b471:debc:14be]) by mira.cbaines.net (Postfix) with ESMTPSA id 6163227BBF7 for <70494@debbugs.gnu.org>; Sun, 21 Apr 2024 10:42:48 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 9dd22500 for <70494@debbugs.gnu.org>; Sun, 21 Apr 2024 09:42:48 +0000 (UTC) From: Christopher Baines Date: Sun, 21 Apr 2024 10:42:35 +0100 Message-ID: <732f10191cbb57caae0cda7428382ddba6a4dba1.1713692561.git.mail@cbaines.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <87bk632h36.fsf@cbaines.net> References: <87bk632h36.fsf@cbaines.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.38 X-Spam-Score: -3.38 X-Migadu-Queue-Id: DCA4853544 X-Migadu-Scanner: mx13.migadu.com X-TUID: td7gF4UX419R * guix/store/database.scm (call-with-transaction, call-with-retrying-transaction): Export procedures. Change-Id: I712f0056f263989769af7cb6f9e395a43f6e36b2 --- guix/store/database.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guix/store/database.scm b/guix/store/database.scm index b6f87d710f..6c8c07e2de 100644 --- a/guix/store/database.scm +++ b/guix/store/database.scm @@ -46,6 +46,9 @@ (define-module (guix store database) call-with-database with-database + call-with-transaction + call-with-retrying-transaction + valid-path-id register-valid-path -- 2.41.0