ob-sql.el: Enhance postgresql support
commite5e9fc974d3e1bb0e50b843f65d4f6689043574e
authorSteven Rémot <steven.remot@gmail.com>
Sat, 20 Sep 2014 13:02:36 +0000 (20 15:02 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 20 Sep 2014 21:06:36 +0000 (20 23:06 +0200)
treea0e8de22cc64c193c664536ed6f2e95ef74d575a
parent20539b8d1d459f866892742028885565816e8d00
ob-sql.el: Enhance postgresql support

* lisp/ob-sql.el (org-babel-sql-dbstring-postgresql): New function
  (org-babel-execute:sql): Use new function.

Before this patch, it was necessary to use :cmdline parameter to
specify host, user and database different the the default ones.  Now,
this can be done using parameters that are independents of the engine
used.

This is not trivial (and not recommended) to pass password as a
command line argument to psql, so :dbpassword is not supported.
lisp/ob-sql.el