emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: ob-sql company
Date: Tue, 02 Jul 2019 19:08:47 +1000	[thread overview]
Message-ID: <87v9wkx0ps.fsf@gmail.com> (raw)
In-Reply-To: <m1a7dx5bk5.fsf@gmail.com>


Ag Ibragimov <agzam.ibragimov@gmail.com> writes:

> I've been using ob-sql to query DBs right from Org-mode and I love it. The only thing I could wish for is auto-completion. Does anyone know if it is possible at all to make it work so Company would show possible table/column names? That would be huge and then I wouldn't have to use external tools like Postico.

as far as I'm aware, this is not possible.

The challenge is in dealing with the different databases - there would
need to be some sort of query layer which was able to interrogate
whatever mechanism the database uses as its data dictionary to find
names of schemas, tables, views, functions, indexes and then columns in
those tables, view, indexes etc. Oviously, it can be done as this is
what tools like dbeaver,  pgAdmin, sqlDeveloper etc all do.

From memory, there have been some modes which a db specific that attempt
to do this sort of thing (I seem tor recall there was one for Oracle
sqlplus).

-- 
Tim Cross

      reply	other threads:[~2019-07-02  9:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-02  4:02 ob-sql company Ag Ibragimov
2019-07-02  9:08 ` Tim Cross [this message]

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=87v9wkx0ps.fsf@gmail.com \
    --to=theophilusx@gmail.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).