-BEGIN PGP SIGNED MESSAGE-
Ag Ibragimov writes:
> 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;
I think it's possible. Should not be hard to implement. You can check out
ob-sql.el source code.
> 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."
This is interesting project.
> 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
[ stardiviner ]
I try to make every word tell the meaning that I want to express.
IRC(freenode): stardiviner, Matrix: stardiviner
-BEGIN PGP SIGNATURE-
-END PGP SIGNATURE-