emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] ob-sqlite: Use a transient in-memory database by default


From: Max Nikulin
Subject: Re: [PATCH] ob-sqlite: Use a transient in-memory database by default
Date: Sat, 5 Aug 2023 10:00:52 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 05/08/2023 05:57, Rudolf Adamkovič wrote:
+*** Make ~ob-sqlite~ use in-database by default

"use in-memory database"

+
+SQLite source blocks with no ~:db~ argument now execute against a
+transient in-memory database by default.

I am unsure, but perhaps it would be more clear to say that the default value of the header argument has changed and it is possible to omit setting :db per-block or as a header argument. It should give a hint how to revert this change in local configuration if somebody wish it.

 This makes Org match the
+default behavior of the ~sqlite3~ shell and makes SQLite blocks more
+practical out of the box.
+

Feel free to just ignore the following. Perhaps to get *really* default behavior ob-sqlite should not check :db value and should not pass it to the command in the case of nil. As a result the command spits a warning.

Earlier I was thinking on buffer-local variables whether the warning has been shown to the user (to do it once), but I think it would lead to unreasonable complication of code with a little value for users.



reply via email to

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