From: Eric Schulte <schulte.eric@gmail.com>
To: "Oliver Večerník" <ov@vecernik.at>
Cc: emacs-orgmode@gnu.org
Subject: Re: sqlite im-/export
Date: Sat, 18 May 2013 08:10:51 -0600 [thread overview]
Message-ID: <87wqqwgyz8.fsf@gmail.com> (raw)
In-Reply-To: <874ne0x0y7.fsf@kerstf.org> ("Oliver Večerník"'s message of "Sat, 18 May 2013 08:21:36 +0200")
Oliver Večerník <ov@vecernik.at> writes:
>> I may have missed you spelling this out in a previous email, but can you
>> not import Org tables directly into sqlite code blocks?
>>
>> Evaluate this again after evaluating the second block.
>> #+BEGIN_SRC sqlite :csv :db test.sqlite
>> SELECT * from t1;
>> #+END_SRC
>
> This works like a charm, thanks again.
>
> But where is :csv or :db documented? The info manual says to look at worg, but
> there is no `ob-doc-sqlite' documentation link. Are there any more
> specific arguments to sqlite?
>
> There is no `ob-doc-sh' either, but maybe there are no specific arguments
> for shell.
Sadly many of the languages are under documented. That could be a good
thing, in that it generally takes less time to add a new language
specific header argument than it does to document one, but it is
obviously also a bad thing when header arguments aren't used because
no-one knows they exist.
In general browsing the source code of the lisp/ob-lang.el files (e.g.,
lisp/ob-sqlite.el) is the best way to find out what header arguments are
used. For example at the top of ob-sqlite you'll find the following.
(defvar org-babel-header-args:sqlite
'((db . :any)
(header . :any)
(echo . :any)
(bail . :any)
(csv . :any)
(column . :any)
(html . :any)
(line . :any)
(list . :any)
(separator . :any)
(nullvalue . :any))
"Sqlite specific header args.")
In my opinion the source code of the language-specific files is
readable, but of course I'm not a good judge as I wrote most of it. We
definitely need more volunteers to add documentation on worg.
--
Eric Schulte
http://cs.unm.edu/~eschulte
prev parent reply other threads:[~2013-05-18 14:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 17:07 sqlite im-/export Oliver Večerník
2013-05-16 19:11 ` Eric Schulte
2013-05-16 20:03 ` Oliver Večerník
2013-05-16 20:48 ` Eric Schulte
2013-05-17 4:35 ` Oliver Večerník
2013-05-17 5:34 ` Oliver Večerník
2013-05-17 13:54 ` Eric Schulte
2013-05-18 6:21 ` Oliver Večerník
2013-05-18 14:10 ` Eric Schulte [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wqqwgyz8.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ov@vecernik.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).