emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] ob-sql company


From: Tim Cross
Subject: Re: [O] ob-sql company
Date: Tue, 02 Jul 2019 19:08:47 +1000
User-agent: mu4e 1.3.1; emacs 26.2

Ag Ibragimov <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]