Emacs major mode for saneql files.
- Make sure that the saneql binary is on your emacs-known
PATH
(varsaneql-compile-command
) - Make sure an
sqlite
/duckdb
binary is on you path (varsaneql-[duckdb|sqlite]-default-binary
). Ideally, use duckdb-saneql, compile it, put the resultingduckdb
binary on yourPATH
. - Press C-c C-c (per default) in a buffer to run
saneql-compile-and-run-buffer
. Ifsaneql-db
is not set yet, this will query for a connection type and string.
- The
sqlite
backend only works with the TPCH schema. To get a TPC-H sqlite database for testing, you can use TPCH-sqlite. - To get the
duckdb
backend to work with arbitrary schemas, use a duckdb binary compiled with duckdb-saneql.