Skip to content

Commit e856713

Browse files
committed
add option
1 parent ff46f96 commit e856713

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ob-sql.el

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
'postgres "\\set ON_ERROR_STOP 1
8585
\\pset footer off
8686
\\pset pager off
87-
\\pset format unaligned")
87+
\\pset format unaligned"
88+
'mysql "\\n")
8889
"Command preamble to run upon shell start.")
8990
(defvar org-sql-session-command-terminated nil)
9091
(defvar org-sql-session--batch-terminate "---#" "To print at the end of a command batch.")
@@ -94,8 +95,9 @@
9495
"Print the command batch termination as last command.")
9596
(defvar org-sql-terminal-command-prefix
9697
(list 'sqlite "\\."
97-
'postgres "\\\\")
98-
"Identify a command for the SQL shell.")
98+
'postgres "\\\\"
99+
'mysql "\\\!")
100+
"Identify a command for the SQL shell.")
99101
(defvar org-sql-environment
100102
(list 'postgres '(("PGPASSWORD" sql-password))))
101103
(defvar org-sql-session-clean-output nil

0 commit comments

Comments
 (0)