%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/org/ |
Current File : //usr/local/share/emacs/27.2/lisp/org/ob-sql.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'ob) (defvar org-babel-default-header-args:sql nil) #@32 SQL-specific header arguments. (defconst org-babel-header-args:sql '((engine . :any) (out-file . :any) (dbhost . :any) (dbport . :any) (dbuser . :any) (dbpassword . :any) (database . :any)) (#$ . 469)) #@66 Expand BODY according to the values of PARAMS. (fn BODY PARAMS) (defalias 'org-babel-expand-body:sql #[514 "\300\301!\"\207" [org-babel-sql-expand-vars org-babel--get-vars] 6 (#$ . 677)]) #@156 Set `sql-product' in Org edit buffer. Set `sql-product' in Org edit buffer according to the corresponding :engine source block header argument. (fn INFO) (defalias 'org-babel-edit-prep:sql #[257 "\300\3018\236A\302!\207" [:engine 2 sql-set-product] 4 (#$ . 875)]) #@118 Make MySQL cmd line args for database connection. Pass nil to omit that arg. (fn HOST PORT USER PASSWORD DATABASE) (defalias 'org-babel-sql-dbstring-mysql #[1285 "\300\301\302\205\f \303P\205 \304\305 \"\205 \306P\205( \307P\2051 \310P\257\"!\207" [combine-and-quote-strings delq nil "-h" format "-P%d" "-u" "-p" "-D"] 14 (#$ . 1149)]) #@117 Make PostgreSQL command line args for database connection. Pass nil to omit that arg. (fn HOST PORT USER DATABASE) (defalias 'org-babel-sql-dbstring-postgresql #[1028 "\300\301\302\205\f \303P\205 \304\305\"\205 \306P\205( \307PF\"!\207" [combine-and-quote-strings delq nil "-h" format "-p%d" "-U" "-d"] 12 (#$ . 1516)]) #@336 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 <user>/<password>@<host>:<port>/<database> or <user>/<password>@<database> using its alias. (fn HOST PORT USER PASSWORD DATABASE) (defalias 'org-babel-sql-dbstring-oracle #[1285 "\203! \203! \211\203! \203! \203! \300\301&\207\2034 \2034 \211\2034 \300\302$\207\303\304!\207" [format "%s/%s@%s:%s/%s" "%s/%s@%s" user-error "Missing information to connect to database"] 12 (#$ . 1863)]) #@196 Make sqlcmd command line args for database connection. `sqlcmd' is the preferred command line tool to access Microsoft SQL Server on Windows and Linux platform. (fn HOST USER PASSWORD DATABASE) (defalias 'org-babel-sql-dbstring-mssql #[1028 "\300\301\302\303\205 \304\305 \"\205 \304\306 \"\205\"