How can I execute a SQL query in emacs lisp?
Posted
by Chris R
on Stack Overflow
See other posts from Stack Overflow
or by Chris R
Published on 2010-06-17T20:06:29Z
Indexed on
2010/06/17
20:13 UTC
Read the original article
Hit count: 299
I want to execute an SQL query and get its result in elisp:
(let ((results (do-sql-query "SELECT * FROM a_table")))
(do-something-with results))
I'm using Postgres, and I already know all of my connection information (host, username, password, db et al) I just want to execute the query and get the result back, synchronously.
© Stack Overflow or respective owner