GNU bug report logs - #76025
[PATCH 1/1] * lisp/progmodes/sql.el: login without prompting

Previous Next

Package: emacs;

Reported by: Phil Estival <pe <at> 7d.nz>

Date: Mon, 3 Feb 2025 05:20:02 UTC

Severity: wishlist

Tags: patch

Full log


Message #76 received at 76025 <at> debbugs.gnu.org (full text, mbox):

From: Michael Mauger <mmauger <at> protonmail.com>
To: Phil Estival <pe <at> 7d.nz>
Cc: 76025 <at> debbugs.gnu.org, Ihor Radchenko <yantar92 <at> posteo.net>,
 Org Mode List <emacs-orgmode <at> gnu.org>
Subject: Re: [PATCH] ob-sql: session
Date: Sun, 15 Jun 2025 20:59:13 +0000
On Sunday, June 15th, 2025 at 3:16 PM, Phil Estival <pe <at> 7d.nz> wrote:

> I also took good note of Michael remarks. 
> The attached series of patches will work
> without any modification to sql.el. I'll introduce later a local
> `sql-connection' bound to the session name. In the absence of it,
> sessions will work, but will ask to confirm provided connection
> parameter upon establishing connection.
> 

Wouldn't the SQLi buffer created by sql-connect be the session? At least in sql.el, when it uses either sql-connect or sql-product-interactive, all the buffers are scanned to for the desired connection settings and switch to the matching buffer rather than creating a new buffer. 

I am trying to cleanup sql.el 2.x before I do a more significant rewrite for sql.el 3.0.  The update will include sql-add-connection which cleanly adds an entry to sql-connection-alist and the ability to call sql-connect with with the connection settings themselves rather than the connection name.  Hopefully those will simplify the integrations that you need. 

And please let me know if you are not getting the behavior you want, or if you are working around something that I ought to look at....

-- 
MICHAEL <at> MAUGER.COM // FSF and SFConservancy // GNU Emacs sql.el maintainer




This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.