emacs-devel
[Top][All Lists]
Advanced

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

Re: sqlite library


From: Eli Zaretskii
Subject: Re: sqlite library
Date: Sat, 10 Dec 2022 09:42:29 +0200

> From: Ag Ibragimov <agzam.ibragimov@gmail.com>
> Date: Fri, 09 Dec 2022 18:35:07 -0600
> 
> I wrote a prototype of a package that queries a sqlite DB, but only
> later realized that built-in support for it was added in Emacs 29 (the version
> I use).
> I want to make the package compatible with older versions of Emacs (at
> least down to 27). I checked package repositories, it seems there are a
> few packages out there (and I don't know which one to use).
> 
> What's the best and most straightforward option here for me?

Use the function sqlite-available-p to find out whether the current
Emacs session has built-in support for SQLite.  If sqlite-available-p
is not fboundp, you know it's an Emacs version older than 29;
otherwise call it to see if it returns non-nil to see if SQLite
support was compiled in.



reply via email to

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