emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ob-sql src blocks with a totally custom engine
@ 2020-06-16 20:35 Ag Ibragimov
  2020-06-16 23:20 ` stardiviner
  0 siblings, 1 reply; 2+ messages in thread
From: Ag Ibragimov @ 2020-06-16 20:35 UTC (permalink / raw)
  To: emacs-orgmode

Is it possible to have source code SQL blocks that are processed with a custom command line tool?
e.g. how can I make something like this to work:

#+begin_src sql :cmdline "osqueryi --json"
  select * from processes limit 5;

For those who don't know what osquery is, here's a quote from https://osquery.io: "Osquery uses basic SQL commands to leverage a relational data-model to describe a device."

I vaguely remember there was a way to basically "pipe" entire code block to be executed in a given cmd line tool, but I am struggling to find how to do that. There's a way, right? But even then, I think it requires the code block to be of sh-mode of shell-mode, but I want it to be SQL because osquery uses SQL.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-16 23:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 20:35 ob-sql src blocks with a totally custom engine Ag Ibragimov
2020-06-16 23:20 ` stardiviner

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).