Re: Org Babel: Submit SQL to command line app & capture results

2020-02-24 Thread John Kitchin
I think you can do something like this. I don't have impala-shell, so I wasn't able to test this. It worked using another executable though. This is pretty bare bones, no sessions, etc. (require 'org) (require 'ob) (defun org-babel-execute:impala (body params) (let* ((code (org-babel-expand-bod

Org Babel: Submit SQL to command line app & capture results

2020-02-23 Thread Nathan Neff
Hello all, I would like to use org-babel to have SQL code like this: * Some heading #+begin_src something SELECT COUNT(*) FROM some_table; #+end_src I would like to have the code highlighted as SQL. However, I'm not reading from a DB matching the requirements of https://orgmode.org/worg/org-co