Skip to main content

Questions tagged [sql-interactive-mode]

The tag has no usage guidance.

7 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
147 views

How to abort a command executing in sqli-mode?

Whilst using a sqli buffer I accidentally ran a mahoosive query. What's the easiest way to abort it? I used sql-postgres to start the process.
cammil's user avatar
  • 509
3 votes
0 answers
112 views

Send custom commands via psql interface

When interacting with postgresql via Emacs sql-postgres, is it possible to write aliases or functions, to be able to type for example, databases instead of \l, when I want to list all databases?
Nsukami _'s user avatar
  • 6,541
1 vote
0 answers
303 views

Postgres sql prompt

I have connected to my remote postgres db via: https://stackoverflow.com/a/65310225/5065796 I am able to query and interact just fine. I cannot, however, see the prompt. It's just a blank line. It ...
Lorem Ipsum's user avatar
  • 4,527
1 vote
0 answers
287 views

sql-connect: (setting-constant nil)

I am using latest Helm from MELPA on Emacs GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-09-11 When I issue sql-connect I see this: The only connection I have saved (in ...
Manuel Uberti's user avatar
0 votes
0 answers
23 views

Use comint with non-interactive CLI tools

Is it possible to run a CLI tool (via sql-* comint-based mode) that checks isatty() and immediately exits because the stdin is empty? Maybe it is possible to force comint (or SQL mode) to run the tool ...
Max Arnold's user avatar
0 votes
0 answers
44 views

sql-interactive-mode get product name for the buffer

I have 2 connections to different servers through sql interactive mode: (setq sql-connection-alist '((mysql_server (sql-product 'mysql) (sql-server "server1") (sql-user &...
user4035's user avatar
  • 1,069
0 votes
0 answers
230 views

Open multiple *SQL* buffers (same product)

I connect to postgres by placing the following in a file on a remote server, opening over tramp, and executing: (setq sql-connection-alist '((pool-my_db (sql-product 'postgres) ...
EoghanM's user avatar
  • 205