There are multiple questions with "sqlite" in the title, but they all want to run SQL queries interactively, which sql-mode
does.
What I want is the following:
I have a pre-existing SQLite database whose format I know. This database is maintained and updated by another program, so I cannot just convert it to a different format and work with that.
I now want to SELECT some stuff from a table in that database and get the result into a variable in elisp (specifically, this will be used to build a helm source).
emacsql-sqlite
almost does this, but it requires all entries in the database to be valid sexpressions, which I cannot enforce in this database.
Is there a package without this limitation? I would rather avoid calling sqlite3
and parsing the output myself, because that will definitely break things in the future.
sqlite3
to convert the table to JSON and then parse it into Emacs.