Bug 255958

Summary: New port: databases/emacsql High-level Emacs Lisp RDBMS front-end
Product: Ports & Packages Reporter: Yasuhiro Kimura <yasu>
Component: Individual Port(s)Assignee: Guangyuan Yang <ygy>
Status: Closed FIXED    
Severity: Affects Only Me CC: ygy
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 255951    
Bug Blocks: 255959    
Attachments:
Description Flags
Patch file
none
Updated patch file none

Description Yasuhiro Kimura freebsd_committer freebsd_triage 2021-05-17 23:49:21 UTC
Created attachment 225045 [details]
Patch file

EmacSQL is a high-level Emacs Lisp front-end for SQLite (primarily), PostgreSQL, MySQL, and potentially other SQL databases.

It works by maintaining a inferior process running (a "connection") for interacting with the back-end database. Connections are automatically cleaned up if they are garbage collected. All requests are synchronous.

Any readable lisp value can be stored as a value in EmacSQL, including numbers, strings, symbols, lists, vectors, and closures. EmacSQL has no concept of "TEXT" values; it's all just lisp objects. The lisp object nil corresponds 1:1 with NULL in the database.
Comment 1 Yasuhiro Kimura freebsd_committer freebsd_triage 2021-05-20 17:48:32 UTC
Created attachment 225135 [details]
Updated patch file

Use latest release rather than snapshot.
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-06-02 02:19:44 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=585e00a411c08024816bcf8e787014cdd5aa10b7

commit 585e00a411c08024816bcf8e787014cdd5aa10b7
Author:     Yasuhiro Kimura <yasu@utahime.org>
AuthorDate: 2021-06-02 02:18:54 +0000
Commit:     Guangyuan Yang <ygy@FreeBSD.org>
CommitDate: 2021-06-02 02:18:54 +0000

    databases/emacsql: New port: High-level Emacs Lisp RDBMS front-end

    PR:             255958
    Approved by:    lwhsu (mentor)

 databases/Makefile                                 |  1 +
 databases/emacsql/Makefile (new)                   | 45 ++++++++++++++++++++++
 databases/emacsql/distinfo (new)                   |  3 ++
 databases/emacsql/files/patch-Makefile (new)       | 12 ++++++
 .../emacsql/files/patch-emacsql-sqlite.el (new)    | 38 ++++++++++++++++++
 .../emacsql/files/patch-sqlite_Makefile (new)      | 22 +++++++++++
 .../emacsql/files/patch-sqlite_emacsql.c (new)     | 11 ++++++
 databases/emacsql/pkg-descr (new)                  | 14 +++++++
 databases/emacsql/pkg-plist (new)                  | 13 +++++++
 9 files changed, 159 insertions(+)
Comment 3 Guangyuan Yang freebsd_committer freebsd_triage 2021-06-02 02:35:44 UTC
Committed, thanks!