[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sqlite3
From: |
Qiantan Hong |
Subject: |
Re: sqlite3 |
Date: |
Sun, 12 Dec 2021 04:18:08 +0000 |
> Would you like to show me the sqlite3 interface? We may as well
> see if we can use that one.
I believe the sqlite3 interface accepts strings of SQL code, which
makes it unlikely to be used as an interface for general Lisp programs.
> I think we should define a program interface for "save this data
> persistently", hook it up to _both_ formats (textual Lisp and
> sqlite3), then design each piece of code that saves persistent data
> to use whichever representation is selected at the time.
>
> Eventually we might convert all the existing places that make
> persistent data so that they use this interface and can save the data
> either way.
I’m currently working on this, some discussions happen in thread
[New package: resist!], some off list. Currently my proposal is basically
to provide two packages:
- store.el, which provides a persistent key-value store interface,
and supports multiple backends.
the interface:
store-make, store-get, store-put, store-rem,
store-push, store-delete
- persist.el (still waiting for response from the author of a package
of the same name to see if we can use this namespace),
which provides persistent variables that are saved periodically.
the interface:
(persist-make-variable VARIABLE &optional STORE METHOD),
(persist-kill-variable VARIABLE)
- Re: sqlite3, (continued)
- Re: sqlite3, Philip Kaludercic, 2021/12/09
- Re: sqlite3, Philip Kaludercic, 2021/12/11
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/11
- Re: sqlite3, Qiantan Hong, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12
- Re: sqlite3, Qiantan Hong, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12
- Re: sqlite3, Qiantan Hong, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12
- Re: sqlite3, Qiantan Hong, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12