From patchwork Tue Feb 20 19:20:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 2276 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BE4CA27BBEA; Tue, 20 Feb 2024 19:31:53 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4FA7027BBE2 for ; Tue, 20 Feb 2024 19:31:53 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcVqC-0005Hx-8Z; Tue, 20 Feb 2024 14:31:44 -0500 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 1rcVq9-0005HI-6I for guix-patches@gnu.org; Tue, 20 Feb 2024 14:31:41 -0500 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 1rcVq8-0007ap-Ie for guix-patches@gnu.org; Tue, 20 Feb 2024 14:31:40 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcVqU-0002FI-CO for guix-patches@gnu.org; Tue, 20 Feb 2024 14:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69292] [PATCH 0/6] Prepare the database code for use in the daemon Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Feb 2024 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69292 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69292@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17084575148616 (code B ref -1); Tue, 20 Feb 2024 19:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Feb 2024 19:31:54 +0000 Received: from localhost ([127.0.0.1]:46586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcVqM-0002Eu-A7 for submit@debbugs.gnu.org; Tue, 20 Feb 2024 14:31:54 -0500 Received: from lists.gnu.org ([209.51.188.17]:36826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcVqK-0002Ek-CI for submit@debbugs.gnu.org; Tue, 20 Feb 2024 14:31:53 -0500 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 1rcVpy-0004sR-6d for guix-patches@gnu.org; Tue, 20 Feb 2024 14:31:30 -0500 Received: from mira.cbaines.net ([2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcVpw-0007Xd-Lo for guix-patches@gnu.org; Tue, 20 Feb 2024 14:31:29 -0500 Received: from localhost (unknown [212.132.255.10]) by mira.cbaines.net (Postfix) with ESMTPSA id ED49D27BBE2 for ; Tue, 20 Feb 2024 19:31:25 +0000 (GMT) Received: from felis (localhost.lan [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id b3a37161 for ; Tue, 20 Feb 2024 19:31:25 +0000 (UTC) User-agent: mu4e 1.10.8; emacs 29.1 From: Christopher Baines Date: Tue, 20 Feb 2024 19:20:45 +0000 Message-ID: <87h6i3lyph.fsf@cbaines.net> MIME-Version: 1.0 Received-SPF: pass client-ip=2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches These changes prepare the database module for use in a Guile implementation of the guix-daemon. There's quite a few procedures that need adding, but these changes just adapt the existing functionality in to something that can be built on. Christopher Baines (6): store: database: Remove call-with-savepoint and associated code. store: database: Remove with-statement and associated code. store: database: Inline SQL to where it's used. store: database: Stop finalizing prepared statements. store: database: Refactor sqlite-register. store: database: Rename a couple of procedures. .dir-locals.el | 3 - guix/store/database.scm | 273 +++++++++++++++++----------------------- 2 files changed, 112 insertions(+), 164 deletions(-) base-commit: f4af19b037826cad90bbcfe400ad864f028cc7d8