emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ob-sql company
@ 2019-07-02  4:02 Ag Ibragimov
  2019-07-02  9:08 ` Tim Cross
  0 siblings, 1 reply; 2+ messages in thread
From: Ag Ibragimov @ 2019-07-02  4:02 UTC (permalink / raw)
  To: emacs-orgmode


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ob-sql company
  2019-07-02  4:02 ob-sql company Ag Ibragimov
@ 2019-07-02  9:08 ` Tim Cross
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Cross @ 2019-07-02  9:08 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-02  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-02  4:02 ob-sql company Ag Ibragimov
2019-07-02  9:08 ` Tim Cross

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).