Ag Ibragimov <agzam.ibragi...@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