[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding emacsql to NonGNU ELPA?

From: Tim Landscheidt
Subject: Re: Adding emacsql to NonGNU ELPA?
Date: Thu, 27 Jan 2022 04:19:34 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]