From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yLFYFIVXkGSwTgAASxT56A (envelope-from ) for ; Mon, 19 Jun 2023 15:26:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WJAwFIVXkGR2HwAA9RJhRA (envelope-from ) for ; Mon, 19 Jun 2023 15:26:29 +0200 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 E287494CD for ; Mon, 19 Jun 2023 15:26:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBED4-0000N8-5n; Mon, 19 Jun 2023 08:42:18 -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 1qBED2-0000Mz-1D for emacs-orgmode@gnu.org; Mon, 19 Jun 2023 08:42:16 -0400 Received: from mr85p00im-zteg06023901.me.com ([17.58.23.192]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBED0-0002iz-HB for emacs-orgmode@gnu.org; Mon, 19 Jun 2023 08:42:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1687178531; bh=Wp6Zkvbyr2LMPDtKe9F+ha45ECBf9B7HHud4AMMFcKA=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=B0vXH4gKASE7wCbOcs8hjk1trtBwKcisAsmbe93MzHRpq0F0c1fQ9qeNUr9Ka/O+M bfe2v4g2Di9ZTicoJrf40hUi2+z5Lphlnr1Bfq3bxEkyqfpZ4913zaAoFlKSYRGQWE XbsSOZut0qxk+ucWuAtWYDObA0BSlmK+T0zYS9xt8oDmfMgHmR5Hyxk/UrEksGbdUF 8xsU+ZYz+P4TUkyEV5rRTTnMKtZTcv9vM/Fqti+leUy1T6F+ByWRVxfA2Tsdrts5V2 zmpHgKRjak1HrDZfkIUfwb8A+W6t8Emu6CIzc6+CmAiE3iZo2TGuSwmX5REehkhFUk EFxY2L4tY9NTg== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-zteg06023901.me.com (Postfix) with ESMTPSA id 5EB566E0568; Mon, 19 Jun 2023 12:42:09 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Ihor Radchenko Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: [PATCH] ob-sqlite: Use a transient in-memory database by default In-Reply-To: <87a5x3wum8.fsf@localhost> References: <20230503125903.95063-1-salutis@me.com> <87a5x3wum8.fsf@localhost> Date: Mon, 19 Jun 2023 14:42:06 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: qfqgP21F-SfHCpT0m51Ih8W3KAb0JHyn X-Proofpoint-ORIG-GUID: qfqgP21F-SfHCpT0m51Ih8W3KAb0JHyn X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=778 phishscore=0 suspectscore=0 spamscore=0 clxscore=1015 bulkscore=0 malwarescore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2306190116 Received-SPF: pass client-ip=17.58.23.192; envelope-from=salutis@me.com; helo=mr85p00im-zteg06023901.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687181189; a=rsa-sha256; cv=none; b=rOiPU1udnJzCiOZW582ysBeoYZDgdwDc5LHkc2+7+AOD22HycSh0hYAeBH46icwXk61gvS xFhDc5ZuetspYwzGhe73aqk2NmL9IG5D1dsp8B58TD+7PyDkCmXJUXL8w9V6hs2+tEx1Je 1J9jmRPmei8jvwXadkZPIiYMSaJ2/xDKMs6JFxRNWUP2n/287AIKAKd5Cpr0Ls7RM7L82R u/4bfIIyWEiYM5lm5Zt2mwxZNxHlWa9xZATYCS7MIsM0B4LPI9otIWnU9G29wqoChaeO3O J3BPLGuqOgzyma11fNN1yo9AI9vp9cMzHN5cP1ZFjhcYPMJlD7sWFDsGgn+jPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=B0vXH4gK; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687181189; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Wp6Zkvbyr2LMPDtKe9F+ha45ECBf9B7HHud4AMMFcKA=; b=NiKCqQDkk8Epr71zxxlZqWowjcXJrSoA9/FIuE5n8lxeNQJj36/A1kUhwdh32c/tTHj8kO Uc3/08HmrEVrOP7QOFErB+6MoroaYbXpFJCCx/CAZqNI5cyIZvNZyFP6TH0htJrd34/P1I ETUwbTRSdFm4tgZnGFn/bnTAZ10g+K0pPqkxJ8EtsZjLw+bUTnSx0h3mFQyuSiGjQYMekO IZAB50yE84nCLVuiEL+XB8vPXV1j2qvTJmyR5p/jBh+RuY7FoDZNryccaHUHVShz5DJQkM 56JsVEYgBPYv6pbYRb4l3a+ZjijrR/Rw7QcaAPK9uGSWzT/X62IRYP1Ml5aLCA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=B0vXH4gK; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -9.95 X-Spam-Score: -9.95 X-Migadu-Queue-Id: E287494CD X-TUID: RI6rvCS/hM7g Ihor Radchenko writes: > I do not mind falling back to ":memory:" when :db is not specified, but > we should display a warning to notify the users. Maybe not as a warning > every time src block is executed, but at least via org-lint. > > Rudolf, WDYT? I am not a fan of making the use of in-memory databases into a "smell", as per Org Lint, because it would communicate to the user that "this is a potential issue that you should probably fix". I think that is not true, given that SQLite defaults to in-memory for interactive use. It is common and useful. Showing a warning has the same problem. Now, showing a message, such as "Using in-memory database", could do, but it would feel like spam. The SQLite shell prints "Connected to a transient in-memory database" exactly once, not on every (re-)query. Perhaps there is a precedent somewhere in Org Babel, and we could do something similar? Rudy --=20 "Music is the mathematics of the sense, mathematics is the music of the rea= son." -- James Joseph Sylvester, 1814-1897 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia