Codebase list emacsql-sqlite3 / dc7c2e6
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
3 changed file(s) with 12 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1414 - '26.1'
1515 - '26.2'
1616 - '26.3'
17 - '27.1'
1718 - 'snapshot'
1819 cask_version:
1920 - '0.8.0'
2424 - You need to install =sqlite3= official CLI tool, 3.8.2 version or above were
2525 tested, =emacsql-sqlite3= may won't work if you using lower version.
2626
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
3127 - This package should be compatible with =emacsql-sqlite3= for most cases. But
3228 foreign key support was disabled by default. To enable this feature, use
3329 ~(emacsql <db> [:pragma (= foreign_keys ON)])~
33
44 ;; Author: Zhu Zihao <all_but_last@163.com>
55 ;; URL: https://github.com/cireu/emacsql-sqlite3
6 ;; Version: 1.0.1
6 ;; Version: 1.0.2
77 ;; Package-Requires: ((emacs "26.1") (emacsql "3.0.0"))
88 ;; Keywords: extensions
99
113113 :group 'emacsql-sqlite3
114114 :type 'file)
115115
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
116123 (defclass emacsql-sqlite3-connection (emacsql-connection)
117124 ((file :initarg :file
118125 :type (or null string)
171178 "--nullvalue" "nil"
172179 ;; Don't return column headings
173180 "--noheader"
181 ;; pass init file if set
182 ,@(when emacsql-sqlite3-init-file
183 `("--init" ,emacsql-sqlite3-init-file))
174184 ,@fullfile)
175185 :buffer (generate-new-buffer " *emacsql sqlite*")
176186 :noquery t