[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [babel] Verbatim output from SQL command
From: |
Viktor Rosenfeld |
Subject: |
Re: [O] [babel] Verbatim output from SQL command |
Date: |
Wed, 19 Oct 2011 19:31:28 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Cool, thanks!
Nick Dokos wrote:
> Viktor Rosenfeld <address@hidden> wrote:
>
> > Hi,
> >
> > Sebastien Vauban wrote:
> >
> > > #+BABEL: :engine msosql :cmdline -S <SERVER> -U <USER> -P <PASS> -d
> > > <DATABASE> -n -w 700
> >
> > Where is the :engine directive documented?
> >
>
> The only place I know of is lisp/ob-sql.el - there is support for the
> following engines currently:
>
>
> ,----
> | ...
> | ('msosql (format "osql %s -s \"\t\" -i %s -o %s"
> | (or cmdline "")
> | (org-babel-process-file-name in-file)
> | (org-babel-process-file-name
> out-file)))
> | ('mysql (format "mysql %s < %s > %s"
> | (or cmdline "")
> | (org-babel-process-file-name in-file)
> | (org-babel-process-file-name out-file)))
> | ('postgresql (format
> | "psql -A -P footer=off -F \"\t\" -f %s -o %s
> %s"
> | (org-babel-process-file-name in-file)
> | (org-babel-process-file-name out-file)
> | (or cmdline "")))
> | (t (error "no support for the %s sql engine" engine)))))
> | ...
> `----
>
> Nick
>
>