From a62b04c246b3281df572b4c18642b3b10a2e8453 Mon Sep 17 00:00:00 2001 From: Phil Estival Date: Thu, 16 Jan 2025 12:34:43 +0100 Subject: [PATCH 02/11] ob-sql: default header arguments are declared in a custom variable lisp/ob-sql.el: default header arguments are declared in a custom variable with :options of composite types. --- lisp/ob-sql.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index c149016cf..634cca566 100644 --- a/lisp/ob-sql.el +++ b/lisp/ob-sql.el @@ -111,7 +111,13 @@ (declare-function sql-set-product "sql" (product)) (defvar sql-connection-alist) -(defvar org-babel-default-header-args:sql '()) +(defcustom org-babel-default-header-args:sql '((:engine . "unset")) + "Default header args." + :type '(alist :key-type symbol :value-type string + :options ("dbi" "sqlite" "mysql" "postgres" + "sqsh" "mssql" "vertica" "oracle" "saphana" )) + :group 'org-babel-sql + :safe t) (defcustom org-sql-run-comint-p 'nil "Run non-session SQL commands through comint if not nil." -- 2.39.5