Merge tag '1.0.2'
Release 1.0.2
# gpg: Signature made Sun 13 Sep 2020 10:09:22 PM MST
# gpg: using RSA key ECD095CD75FA79FCAEB29B46D523959FEC4616A6
# gpg: issuer "all_but_last@163.com"
# gpg: Can't check signature: No public key
Sean Whitton
3 years ago
24 | 24 |
- You need to install =sqlite3= official CLI tool, 3.8.2 version or above were
|
25 | 25 |
tested, =emacsql-sqlite3= may won't work if you using lower version.
|
26 | 26 |
|
27 | |
- =sqlite3= CLI tool will load =~/.sqliterc= if presented, =emacsql-sqlite3=
|
28 | |
will get undefined behaviour if any error occurred during the load progress.
|
29 | |
It's better to keep this file empty.
|
30 | |
|
31 | 27 |
- This package should be compatible with =emacsql-sqlite3= for most cases. But
|
32 | 28 |
foreign key support was disabled by default. To enable this feature, use
|
33 | 29 |
~(emacsql <db> [:pragma (= foreign_keys ON)])~
|
3 | 3 |
|
4 | 4 |
;; Author: Zhu Zihao <all_but_last@163.com>
|
5 | 5 |
;; URL: https://github.com/cireu/emacsql-sqlite3
|
6 | |
;; Version: 1.0.1
|
|
6 |
;; Version: 1.0.2
|
7 | 7 |
;; Package-Requires: ((emacs "26.1") (emacsql "3.0.0"))
|
8 | 8 |
;; Keywords: extensions
|
9 | 9 |
|
|
113 | 113 |
:group 'emacsql-sqlite3
|
114 | 114 |
:type 'file)
|
115 | 115 |
|
|
116 |
(defcustom emacsql-sqlite3-init-file null-device
|
|
117 |
"The path to the init file.
|
|
118 |
The init file can contain a mix of SQL statements and meta-commands.
|
|
119 |
When non-nil, it is passed to the init flag when starting the sqlite3 process."
|
|
120 |
:group 'emacsql-sqlite3
|
|
121 |
:type 'file)
|
|
122 |
|
116 | 123 |
(defclass emacsql-sqlite3-connection (emacsql-connection)
|
117 | 124 |
((file :initarg :file
|
118 | 125 |
:type (or null string)
|
|
171 | 178 |
"--nullvalue" "nil"
|
172 | 179 |
;; Don't return column headings
|
173 | 180 |
"--noheader"
|
|
181 |
;; pass init file if set
|
|
182 |
,@(when emacsql-sqlite3-init-file
|
|
183 |
`("--init" ,emacsql-sqlite3-init-file))
|
174 | 184 |
,@fullfile)
|
175 | 185 |
:buffer (generate-new-buffer " *emacsql sqlite*")
|
176 | 186 |
:noquery t
|