4

I would like to evaluate SQL source blocks in Org Babel using the connections I have set up in sql-connection-alist from sql-mode. This way I can save database credentials in a private (Elisp) file and share the files with the queries.

Is there any way to configure this in Org Mode?

1

I submitted a patch to do this: ob-sql.el: Option to reference connections in `sql-connection-alist'. It should be included in the next version of Org Mode.

  • It's out with Org 9.3 – larsen Dec 6 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.