From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AFkuI+KdjmddcwAAe85BDQ:P1 (envelope-from ) for ; Mon, 20 Jan 2025 19:02:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id AFkuI+KdjmddcwAAe85BDQ (envelope-from ) for ; Mon, 20 Jan 2025 20:02:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=a6c8wr0v; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1737399778; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CO1WTzCIp2b4c31cZ1/++BQ0G6Jm2bPtC24Of6i9j9Q=; b=DFrHAgDoISsEjF3w1xP5hizYKlbeunBN68JCIAaBxD4dCtgu21bNAyPZXPjCXoz/C8CUIh jTVhkgDYLUHyR8R1M5wgRL/3IDh6gZ9bGgUQdomutRj1iFbdoHaVBC2zCsec91I5Zc70wY /m/s2Yx7tJK+A/PRF5aY1irnvASgTmTdVTNu6tGwEEaXkH7Y00+ZUD9A5CQJhIMF07NU27 XNRfKIs+AdFrJLhotVSW8ijYhZxWt35ZGLkvfjO5A3mv2did69cFzGgD0jRJSrebnVNzCD PQmwuMoB6qNb6mOYaDNl3Aqi0mJJWbVcNMFAXzibE2bjcBj7pHBzwr6pi6bu5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=a6c8wr0v; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1737399778; a=rsa-sha256; cv=none; b=hTm+SUHuF5JiyACJTTPNWugpjMt3zBM6fTBLI43M7UWYy1QdYAELXX+VsezgoktXGg2Qf/ gBL8/sHVCCjCedHxnxxZiVKA+oHJ7kq5I6fpa+kV5pT1KpcBaeHFi/WyP1wXCUPTx/N740 BPKWkFjtKDrGRyuCwEpI5E7oEiWD8mkaJ0adONGurZ9SONlmrFoY9ruaPg5iWzsiJmvzK+ yJmJz/N7MCZM4FDQECErb+GxHn6mTXLegdlpl1o9NsQaL508VWGlyGJqlO/t6FhJo9YdFc c3JpAnkG/XuhXdskiABqbiN5sl3KEE6HBXZ3Mi1PScB/0MMFksBocHy7Q0EHgw== 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 3ABC897D34 for ; Mon, 20 Jan 2025 20:02:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tZx2R-00044l-09; Mon, 20 Jan 2025 14:02:19 -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 1tZx2F-000445-Ub for emacs-orgmode@gnu.org; Mon, 20 Jan 2025 14:02:12 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZx2D-0001sA-8G for emacs-orgmode@gnu.org; Mon, 20 Jan 2025 14:02:07 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 42759240101 for ; Mon, 20 Jan 2025 20:02:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1737399722; bh=oVcb0OIR/wVuQ064PsbArdmgt2iie2n381QzZdDYUuc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=a6c8wr0vTOs+wm1iJMBErBthq+ssdn2EbkckMnG9p0HBrxCG2dHSFrUsGI5larZPf hZr/BJD9+4BDcVEIiXPBSXrbZtbKPOrVoLlH91NRxsgOo6ksQMcDSMijWlpnjBX9sN dvGbJga3dWAUBSqKzX75CV8KPYu+f++NAT/9IV2s/sqedGPq8tHz40inuXqplAtSEq H7livxPaKAZU0DTUvjvfnBLgLN05e0MLQXU8Jnok5ReaU8xwvr95mBbVIbPSGfVCee pHISmD8JuMKnAZ5PNNks+ynMJACX0g39O+UASNYs7qH1a+lKv2vfvxEzK8WYbJxSiz zUj6OCpKbrxGw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YcKT54XNqz6tn4; Mon, 20 Jan 2025 20:02:01 +0100 (CET) From: Ihor Radchenko To: Phil Estival Cc: Org Mode List Subject: Re: [PATCH] ob-sql: session + sql.el w/o prompt In-Reply-To: References: <646f7d12-a3d1-4a7c-83e2-5eecd7ca6817@7d.nz> <87seqrh3wl.fsf@localhost> <2c80ecf8-e114-45fd-8116-49ce0f975070@7d.nz> <875xmq31vr.fsf@localhost> <87a5bps4l1.fsf@localhost> Date: Mon, 20 Jan 2025 19:04:19 +0000 Message-ID: <87ikq9qpcc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 X-Migadu-Spam-Score: -7.99 X-Spam-Score: -7.99 X-Migadu-Queue-Id: 3ABC897D34 X-Migadu-Scanner: mx10.migadu.com X-TUID: czVtfPtcIFCc Phil Estival writes: >> What about changing sql.el to provide the necessary flexibility? >> I'd prefer it better than rewriting parts of sql.el in Org mode. > > Gladly. Here is a proposal for patch for `sql-product-interactive' in > sql.el. A specific case for sqlite is handled and this is not 100% > satisfying. I have the feeling this should rather be where a > conversion of nil params to empty string happens, but sql.el is > rather long and the verifications required are numerous... There may > also be other db that allow connection without one these parameters... > > The previous configuration from this series of patch, with a variant > of `sql-product-interactive', would allow a nil database for a session > of sqlite, now it needs to mention an empty string for :database or to > set it as a default value in `sql-sqlite-login-params'. > ... Thanks! May you please post the patch on Emacs bug tracker? (M-x submit-emacs-patch) and X-Debbugs-CC me? That way, we get the Emacs maintainers involved into the discussion. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at