emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Денис Мекшун" <me@denismekshun.com>
To: emacs-orgmode@gnu.org
Subject: To support the ":dbport" value
Date: Wed, 18 Mar 2015 18:12:06 +0300	[thread overview]
Message-ID: <1426691526.266301649@f324.i.mail.ru> (raw)

Good day,

I use the org-mode to take statistical data from remote servers. And founf out that current scheme such this doesn't support a port value:

#+name: ALLODS-248601-database
#+header: :engine mysql
#+header: :dbhost 127.0.0.1
#+header: :dbuser test
#+header: :dbpassword  test
#+header: :database test
#+begin_src sql :file /tmp/test.csv
  SELECT  *  FROM test;
#+end_src

I made some changes to the ob-sql.el file and now it supports the ":dbport" value. I attached the file which include changes, and would like to suggest apply the settings to the future versions.
Now it works like this:

#+name: ALLODS-248601-database
#+header: :engine mysql
#+header: :dbhost 127.0.0.1
#+header: :dbport "13306"
#+header: :dbuser test
#+header: :dbpassword test
#+header: :database test
#+begin_src sql :file /tmp/test.csv
  SELECT  *  FROM test;
#+end_src

I am a beginner lisp developer and I am not sure that I made correct fix, and would like to ask you to improve this file. 

-- 
Denis Mekshun

                 reply	other threads:[~2015-03-18 15:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1426691526.266301649@f324.i.mail.ru \
    --to=me@denismekshun.com \
    --cc=emacs-orgmode@gnu.org \
    /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).