Re: ob-sql dbconnection engine

2023-10-07 Thread Ihor Radchenko
Ihor Radchenko writes: > Andreas Gerler writes: > >> In the end you are still able to overwrite in your src block parameters via >> :engine > > Sure, but wouldn't it be better to amend the patch adding aliases to the > supported engine names in `sql-connection-alist'? I considered merging and

Re: ob-sql dbconnection engine

2023-02-09 Thread Ihor Radchenko
Andreas Gerler writes: > In the end you are still able to overwrite in your src block parameters via > :engine Sure, but wouldn't it be better to amend the patch adding aliases to the supported engine names in `sql-connection-alist'? -- Ihor Radchenko // yantar92, Org mode contributor, Learn

Re: ob-sql dbconnection engine

2023-02-08 Thread Andreas Gerler
Hi Ihor, I use only MySQL, PostgreSQL and Vertica. However for me sql-product postgres in my sql-connection-alist works both in ob-sql as well as SQLi. In the end you are still able to overwrite in your src block parameters via :engine Andy > On Feb 5, 2023, at 11:58 AM, Ihor Radchenko wrote:

Re: ob-sql dbconnection engine

2023-02-05 Thread Ihor Radchenko
Andreas Gerler writes: > without the patch your org source block has to look like: > > #+begin_src sql :engine mysql :dbconnection mysqldb1 > SELECT * FROM nodes; > #+end_src > > with that patch you can just type > > #+begin_src sql :dbconnection mysqldb1 > SELECT * FROM nodes; > #+end_src >

Re: ob-sql dbconnection engine

2023-01-28 Thread Andreas Gerler
Hi! and a new patch with proper commit message. 0002-lisp-ob-sql.el-sql-connection-alist-engine.patch Description: Binary data > On 28. Jan 2023, at 13:57, Andreas Gerler > wrote: > > Hi! > > without the patch your org source block has to look like: > > #+begin_src sql :engine mysql :dbc

Re: ob-sql dbconnection engine

2023-01-28 Thread Andreas Gerler
Hi! without the patch your org source block has to look like: #+begin_src sql :engine mysql :dbconnection mysqldb1 SELECT * FROM nodes; #+end_src with that patch you can just type #+begin_src sql :dbconnection mysqldb1 SELECT * FROM nodes; #+end_src because your engine is mapped to sql-pro

Re: ob-sql dbconnection engine

2023-01-27 Thread Ihor Radchenko
Andreas Gerler writes: > as I am still learning more elisp it took me some try and error but I can use > the sql-product now within dbconnection. > Using :engine still works as well. > Still wondering if there is a more elegant way for the if clause. Thanks for the patch! Could you please expla

ob-sql dbconnection engine

2023-01-21 Thread Andreas Gerler
Hi! as I am still learning more elisp it took me some try and error but I can use the sql-product now within dbconnection. Using :engine still works as well. Still wondering if there is a more elegant way for the if clause. ob-sql.el.diff Description: Binary data so long… Andreas Gerler —