commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(require 'ob) |
|
16 |
(defvar org-babel-default-header-args:sql nil) |
|
17 |
#@32 SQL-specific header arguments. |
|
18 |
(defconst org-babel-header-args:sql '((engine . :any) (out-file . :any) (dbhost . :any) (dbport . :any) (dbuser . :any) (dbpassword . :any) (database . :any)) (#$ . 469)) |
|
19 |
#@66 Expand BODY according to the values of PARAMS. |
|
20 |
|
|
21 |
(fn BODY PARAMS) |
|
22 |
(defalias 'org-babel-expand-body:sql #[514 "\300\301!\"\207" [org-babel-sql-expand-vars org-babel--get-vars] 6 (#$ . 677)]) |
|
23 |
#@118 Make MySQL cmd line args for database connection. Pass nil to omit that arg. |
|
24 |
|
|
25 |
(fn HOST PORT USER PASSWORD DATABASE) |
|
26 |
(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 (#$ . 875)]) |
|
27 |
#@117 Make PostgreSQL command line args for database connection. |
|
28 |
Pass nil to omit that arg. |
|
29 |
|
|
30 |
(fn HOST PORT USER DATABASE) |
|
31 |
(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 (#$ . 1241)]) |
|
32 |
#@95 Make Oracle command line args for database connection. |
|
33 |
|
|
34 |
(fn HOST PORT USER PASSWORD DATABASE) |
|
35 |
(defalias 'org-babel-sql-dbstring-oracle #[1285 "\300\301&\207" [format "%s/%s@%s:%s/%s"] 12 (#$ . 1587)]) |
|
36 |
#@196 Make sqlcmd command line args for database connection. |
|
37 |
`sqlcmd' is the preferred command line tool to access Microsoft |
|
38 |
SQL Server on Windows and Linux platform. |
|
39 |
|
|
40 |
(fn HOST USER PASSWORD DATABASE) |
|
41 |
(defalias 'org-babel-sql-dbstring-mssql #[1028 "\300\301\302\303\205 \304\305 \"\205 \304\306 \"\205\" |