[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [BUG] ob-sqlite.el, -init doesn't work with some options
From: |
Łukasz Stelmach |
Subject: |
[Orgmode] [BUG] ob-sqlite.el, -init doesn't work with some options |
Date: |
Tue, 09 Nov 2010 20:22:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hello.
ob-sqlite.el uses -init option to provide sqlite with a src block
content, however, this prevetns sevarl options' from taking an
effect. Particularly -header (and it's opposite), -csv and -header
Create a database, put a SELECT into a file and compare the effects of
the following commands
sqlite3 -init file.sql -header -separator ';' -csv db.sqlite
cat file.sql | sqlite3 -header -separator ';' -csv db.sqlite
A walkaround is to place desired configration commands (the onse
beginning with a dot in sqlite) in the src block, e.g:
#+BEGIN_SRC sqlite :db passwords.sqlite :results replace
.separator |
.mode csv
select * from myusers;
#+END_SRC
--
Miłego dnia,
Łukasz Stelmach
- [Orgmode] [BUG] ob-sqlite.el, -init doesn't work with some options,
Łukasz Stelmach <=