Skip to content
EDBC is Emacs-Lisp-based data access technology.
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
edbc-mysql.el
edbc-sqlite.el
edbc.el

README.md

edbc

EDBC is Emacs-Lisp-based data access technology.

It is an acronym Emacs-Lisp Database Connectivity, with DB being universally recognized as the abbreviation for database. This technology is an API for the Emacs-Lisp programming language that defines how a client may access a data. It provides methods for querying and updating data in a database. EDBC is oriented towards relational databases.

A sample to connect sqlite:

(edbc-with-connect ((url "users.db"))
  (let ((id 1)
        (name "Joe")
        (nickname "redraiment"))
    ; Purge table
    (edbc delete from users)
    ; Equals insert into users (id, name) values (1, 'Joe') on sqlite
    (edbc insert into users (id, name) values (:id, :name))
    ; Equals update users set name = 'redraiment' where id = 1 on sqlite
    (edbc update users set name = :nickname where id = :(identity id))
    ; Returns ((("id" . "1") ("name" . "redraiment")))
    (edbc select * from users)))
You can’t perform that action at this time.