unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vladimir Kazanov <vekazanov@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Support for Sqlite Archive files
Date: Fri, 21 Jun 2024 14:25:52 +0300	[thread overview]
Message-ID: <86ed8qlepr.fsf@gnu.org> (raw)
In-Reply-To: <CAAs=0-26=iP==K3+8EKX7ghD8E8Tyc8-5kO7QOKP5aBiaxLhfg@mail.gmail.com> (message from Vladimir Kazanov on Fri, 21 Jun 2024 12:12:05 +0100)

> From: Vladimir Kazanov <vekazanov@gmail.com>
> Date: Fri, 21 Jun 2024 12:12:05 +0100
> 
> Sqlite Archive files are a format similar to archive but using Sqlite
> database as an underlying format. See https://sqlite.org/sqlar.html
> for details.
> 
> Included is a patch for archive-mode  that adds a backend utilising
> the sqlite3 cli utility for inspecting and editing sqlar files. The
> code includes a set of unit tests as well as an example sqlar file.

Thanks, but why do we need a cli utility when we have built-in SQLite
support?  Can't we access the SQLite Archive files via that built-in
support?  I'd prefer to have that instead of relying on external
utility.

In any case, the code you posted should at least bind
coding-system-for-read and coding-system-for-write to utf-8 (and
perhaps also file-name-coding-system if necessary), since AFAIU SQLite
databases use UTF-8 encoding for text.  Suggest to try your code in a
non-UTF-8 locale to see if it works or not.

> +(defcustom archive-sqlar-write-file-member
> +  '("sqlite3" "-A" "--update" "--file")
> +  "Program and its options to run in order to delete Sqlite Archive
> +file members."

The doc string seems like a copy/paste mistake.

Also, the doc strings of these options should tell that -A must be in
the options, no?  Or maybe the option should only hold options to be
_added_ to the standard mandatory ones?

> +  :version "29.1"

The version should be 31.1, I think (as Emacs 30 will start its
release cycle very soon).



  reply	other threads:[~2024-06-21 11:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-21 11:12 [PATCH] Support for Sqlite Archive files Vladimir Kazanov
2024-06-21 11:25 ` Eli Zaretskii [this message]
2024-06-21 19:42   ` Vladimir Kazanov
2024-06-21 19:48     ` Eli Zaretskii
2024-06-22  9:59       ` Vladimir Kazanov
2024-06-22 10:44         ` Eli Zaretskii
2024-06-22 15:05   ` Madhu
2024-06-22 16:23     ` Eli Zaretskii
2024-06-22 23:50       ` Björn Bidar
     [not found]       ` <877cegilkh.fsf@>
2024-06-23  5:15         ` Eli Zaretskii
2024-06-23  7:10           ` Madhu
2024-06-28  3:58           ` Richard Stallman
2024-06-28  4:24             ` tomas
2024-07-01  3:48               ` Richard Stallman
2024-06-28  4:37             ` Collin Funk

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86ed8qlepr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=vekazanov@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).