From 7de8b4a69cfd098724860d136be51f7fea4b24a2 Mon Sep 17 00:00:00 2001 From: Phil Estival Date: Tue, 26 Nov 2024 12:12:00 +0100 Subject: [PATCH 08/10] ob-sql: minor changes in docstrings --- lisp/ob-sql.el | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index 3211b9dc8..51a6a2390 100644 --- a/lisp/ob-sql.el +++ b/lisp/ob-sql.el @@ -151,7 +151,8 @@ "Header arguments accepted.") (defun org-babel-sql-dbstring-mysql (host port user password database) - "Make MySQL cmd line args for database connection. Pass nil to omit that arg." + "Make MySQL command line arguments for database connection. +nil arguments are ommited." (mapconcat #'identity (delq nil @@ -163,8 +164,8 @@ " ")) (defun org-babel-sql-dbstring-postgresql (host port user database) - "Make PostgreSQL command line args for database connection. -Pass nil to omit that arg." + "Make PostgreSQL command line arguments for database connection. +nil arguments are ommited." (mapconcat #'identity (delq nil @@ -176,18 +177,10 @@ Pass nil to omit that arg." (defun org-babel-sql-dbstring-oracle (host port user password database) "Make Oracle command line arguments for database connection. - If HOST and PORT are nil then don't pass them. This allows you to use names defined in your \"TNSNAMES\" file. So you can -connect with - - /@:/ - -or - - /@ - -using its alias." +connect with /@:/ +or /@ using its alias." (when user (setq user (shell-quote-argument user))) (when password (setq password (shell-quote-argument password))) (when database (setq database (shell-quote-argument database))) @@ -213,7 +206,7 @@ SQL Server on Windows and Linux platform." (defun org-babel-sql-dbstring-sqsh (host user password database) "Make sqsh command line args for database connection. -\"sqsh\" is one method to access Sybase or MS SQL via Linux platform" +sqsh is one method to access Sybase or MS SQL via Linux platform." (mapconcat #'identity (delq nil @@ -225,7 +218,7 @@ SQL Server on Windows and Linux platform." (defun org-babel-sql-dbstring-vertica (host port user password database) "Make Vertica command line args for database connection. -Pass nil to omit that arg." +nil arguments are ommited." (mapconcat #'identity (delq nil @@ -238,7 +231,7 @@ Pass nil to omit that arg." (defun org-babel-sql-dbstring-saphana (host port instance user password database) "Make SAP HANA command line args for database connection. -Pass nil to omit that arg." +nil arguments are ommited." (mapconcat #'identity (delq nil -- 2.39.5