Skip to content

Let user control fallback to original babel sql exection function - #80

Merged
kostafey merged 1 commit into
kostafey:masterfrom
stardiviner:fallback-to-default-babel
Feb 14, 2019
Merged

Let user control fallback to original babel sql exection function#80
kostafey merged 1 commit into
kostafey:masterfrom
stardiviner:fallback-to-default-babel

Conversation

@stardiviner

Copy link
Copy Markdown
Contributor

Reference to original PR #74

@coveralls

coveralls commented Feb 11, 2019

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.5%) to 39.969% when pulling aa34074 on stardiviner:fallback-to-default-babel into bc99cba on kostafey:master.

Comment thread ejc-sql.el Outdated
(and (cdr (assq :engine params))
(not
(yes-or-no-p
(concat "ejc-sql is enabled, ignore source block :engine parameters\n"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I'd prefer my version of the message here since a user have to pass a set of params to execute queries.
:engine - is only one of it. Furthermore, \n is redundant here. I split code for 2 lines to improve readability.

(concat "ejc-sql is enabled, ignore source block connection"
        " parameters and use ejc-sql to execute it? ")

Or probably this version (see: https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-sql.html):

(concat "ejc-sql is enabled, ignore source block connection"
        " header arguments and use ejc-sql to execute it? ")

Comment thread README.md Outdated

### Mix ejc-sql with Org Mode default ob-sql engine together in one buffer

You can set option `ejc-org-mode-babel-wrapper` to disable `ejc-sql` wrapper

@kostafey kostafey Feb 13, 2019

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's too descriptive (no need to dig into details). Keep the header and place a text like this:

You can use both ejc-sql and original org-babel execution simultaneously.

To disable ejc-sql wrapper around Org Mode SQL source code blocks, set ejc-org-mode-babel-wrapper to nil (enabled by default).

If ejc-org-mode-babel-wrapper is enabled and the current SQL source code block has a connection header arguments, you will be asked for confirmation.

@stardiviner

Copy link
Copy Markdown
Contributor Author

Updated now, thanks for your advise. and sorry for my clumsy description. :)

1 similar comment
@stardiviner

Copy link
Copy Markdown
Contributor Author

Updated now, thanks for your advise. and sorry for my clumsy description. :)

@kostafey
kostafey merged commit ff8e318 into kostafey:master Feb 14, 2019
@kostafey

Copy link
Copy Markdown
Owner

Thank you. Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants