From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.devel Subject: Re: Adding emacsql to NonGNU ELPA? Date: Thu, 27 Jan 2022 04:19:34 +0000 Organization: http://www.tim-landscheidt.de/ Message-ID: <87czkdg695.fsf@vagabond.tim-landscheidt.de> References: <87ilv13v3y.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27603"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: Stefan Kangas , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 27 05:21:15 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCwHb-00072p-KI for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Jan 2022 05:21:15 +0100 Original-Received: from localhost ([::1]:37520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCwHa-0007Ka-1O for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jan 2022 23:21:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCwGB-0006cN-T9 for emacs-devel@gnu.org; Wed, 26 Jan 2022 23:19:47 -0500 Original-Received: from andalucia.tim-landscheidt.de ([116.203.78.250]:38594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCwGA-0004Kt-0w for emacs-devel@gnu.org; Wed, 26 Jan 2022 23:19:47 -0500 Original-Received: from [2a02:3030:40a:1341:99c2:1865:daf3:3138] (port=42486 helo=vagabond) by andalucia.tim-landscheidt.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1nCwFz-0004R2-Ip; Thu, 27 Jan 2022 04:19:35 +0000 In-Reply-To: <87ilv13v3y.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 03 Jan 2022 12:40:49 +0100") Received-SPF: pass client-ip=116.203.78.250; envelope-from=tim@tim-landscheidt.de; helo=andalucia.tim-landscheidt.de 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:285470 Archived-At: Lars Ingebrigtsen wrote: >> Any objections to adding emacsql to NonGNU ELPA? >> https://github.com/skeeto/emacsql > Sure, seems like a good idea to me. > --- > (emacsql db [:select [name id] > :from people > :where (> salary 62000)]) > --- > We should probably add something like this to Emacs core, though. I > mean the DSL for writing SQL without strings. I'm not sure this is > exactly the language we should go for, though, but it generally looks > sound. There isn't anything similar for other languages, so why for SQL? This DSL would need to be /very/ complicated for it to be able to express non-trivial SQL statements. What I dearly yearn for is an equivalent of shell-quote-argument (or prin1 & Co.) for SQL (and maybe other languages), e. g. in Emacs Lisp generate a Perl script, embedding strings that represent data gathered by Emacs Lisp. Tim