all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ag Ibragimov <agzam.ibragimov@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: sqlite library
Date: Sat, 10 Dec 2022 09:42:29 +0200	[thread overview]
Message-ID: <83tu23yaai.fsf@gnu.org> (raw)
In-Reply-To: <m2ilikxfic.fsf@gmail.com> (message from Ag Ibragimov on Fri, 09 Dec 2022 18:35:07 -0600)

> 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	other threads:[~2022-12-10  7:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-10  0:35 sqlite library Ag Ibragimov
2022-12-10  7:42 ` Eli Zaretskii [this message]
2022-12-10 15:14 ` Daniel Kraus
2022-12-10 15:27 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83tu23yaai.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=agzam.ibragimov@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.