From: "Thomas S. Dye" <tsd@tsdye.online>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Finally figuring out some ob-sqlite stuff -- for worg?
Date: Sat, 09 Nov 2019 07:38:18 -1000 [thread overview]
Message-ID: <871ruhosqd.fsf@tsdye.online> (raw)
> Okay, it's up. If anyone wants to explain to me the point of the
> "where
> exists" clause in the SQL, I would be interested to hear. It
> works as
> expected this way, but is that clause necessary?
The 'if exists' clause protects against an SQLite error raised if
you ask to delete a table that doesn't exist. The code will work
without it if the table exists, but will exit without creating the
table if not.
Thanks for a useful addition to the Org babel SQLite
documentation. I agree with you that Org mode tables are a
convenient way to enter SQL data, keeping in mind that table
columns can't be rearranged without changes to the SQL code.
All the best,
Tom
--
Thomas S. Dye
http://tsdye.online/tsdye
next reply other threads:[~2019-11-09 17:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-09 17:38 Thomas S. Dye [this message]
2019-11-09 17:43 ` Fwd: Re: Finally figuring out some ob-sqlite stuff -- for worg? Thomas S. Dye
2019-11-09 18:00 ` Eric Abrahamsen
-- strict thread matches above, loose matches on Subject: below --
2019-11-08 7:06 Thomas S. Dye
2019-11-08 16:20 ` Eric Abrahamsen
2019-11-08 0:10 Eric Abrahamsen
2019-11-08 6:59 ` Fraga, Eric
2019-11-09 16:50 ` Eric Abrahamsen
2019-11-09 17:28 ` Stefan Nobis
2019-11-09 17:58 ` Eric Abrahamsen
2019-11-10 9:44 ` Stefan Nobis
2019-11-10 19:48 ` Eric Abrahamsen
2019-11-10 19:48 ` Eric Abrahamsen
2020-02-12 9:15 ` Bastien
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=871ruhosqd.fsf@tsdye.online \
--to=tsd@tsdye.online \
--cc=emacs-orgmode@gnu.org \
--cc=eric@ericabrahamsen.net \
/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).