emacs-devel
[Top][All Lists]
Advanced

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

Re: sqlite library


From: Stefan Monnier
Subject: Re: sqlite library
Date: Sat, 10 Dec 2022 10:27:28 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> Can you someone advise me what should I use, what should I put in
> `Package-Requires:`; maybe the best would be to point to a simple
> package with a similar problem?

See https://elpa.gnu.org/packages/triples.html

It does not announce any dependency in its `Package-Requires:` (other
than Emacsā‰„25 and `seq`).  Instead it checks at runtime whether/which
kind of sqlite support is available:

  (unless (pcase-exhaustive triples-sqlite-interface
              ('builtin
               (and (fboundp 'sqlite-available-p) (sqlite-available-p)))
              ('emacsql (require 'emacsql nil t)))
    (error "The triples package requires either Emacs 29 or the emacsql package 
to be installed."))

`Package-Requires:` is just a tool to help users install the package;
it doesn't have to be "exact".


        Stefan




reply via email to

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