summaryrefslogtreecommitdiff
path: root/lisp/sqlite-mode.el
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* Remove column quoting from sqlite-modeThomas Hilke2023-09-171-16/+1
| | | | | | | * lisp/sqlite-mode.el (sqlite-mode--column-names): Unquote column name. (Bug#65998) Copyright-paperwork-exempt: yes
* Close SQL database when corresponding 'sqlite-mode' buffer is killedThomas Hilke2023-09-161-0/+1
| | | | | | | * lisp/sqlite-mode.el (sqlite-mode-open-file): Close DB when the buffer is killed. (Bug#65998) Copyright-paperwork-exempt: yes
* Handle tabs in the SQL shown in the column listingjohn muhl2023-08-031-1/+1
| | | | | * lisp/sqlite-mode.el (sqlite-mode-list-columns): Handle tabs. (Bug#64964)
* Improve error message from sqlite-mode.elEli Zaretskii2023-01-151-0/+4
| | | | | * lisp/sqlite-mode.el (sqlite-mode-open-file): Add error checking. (Bug#60490)
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* Fix cl-generic bootstrap problemsLars Ingebrigtsen2022-06-241-0/+1
| | | | | | | | | | | | | | | | | | | | | * lisp/sqlite-mode.el (require): * lisp/net/eudc.el (require): * lisp/arc-mode.el (require): Require subr-x, since these files are using macros from there. * lisp/emacs-lisp/subr-x.el (with-memoization): Move from here... * lisp/subr.el (with-memoization): ... to here, as it's used from the preloaded cl-generic.el file. * lisp/emacs-lisp/cl-generic.el (cl--generic-compiler): Don't use the autoloaded `byte-compile' function during bootstrap. (cl--generic-get-dispatcher): Don't require subr-x, either. cl-generic has been preloaded since 2015, and most usages of it (in preloaded files) work fine. In particular, using `cl-defgeneric' is unproblematic. However, `cl-defmethod' would end up pulling in the byte compiler (at load time), which would make it impossible to use `cl-defmethod' in pre-loaded files, and this change fixes that (but possibly not in the most self-evidently correct way).
* (sqlite-mode--column-names): Suppport nested parensYoav Marco2022-05-111-3/+11
| | | | | | | * lisp/sqlite-mode.el (sqlite-mode--column-names): Make parsing more resilient (bug#55363). Copyright-paperwork-exempt: yes
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
|
* Check for support in sqlite-mode-open-fileLars Ingebrigtsen2021-12-121-0/+2
| | | | | * lisp/sqlite-mode.el (sqlite-mode-open-file): Error out earlier when we don't have sqlite support.
* Fix some compilation warnings in sqlite-less buildsdick r. chiang2021-12-121-0/+8
| | | | | | * test/src/sqlite-tests.el: * lisp/sqlite-mode.el: Avoid compilation warnings in builds without libsqlite (bug#52440).
* Tweak erroring in sqlite-mode-deleteLars Ingebrigtsen2021-12-121-1/+1
| | | | | * lisp/sqlite-mode.el (sqlite-mode-delete): Use user-error instead of error for user-level stuff.
* Make sqlite-mode-list-tables work on older sqlite versionsLars Ingebrigtsen2021-12-121-1/+1
| | | | | | | * lisp/sqlite-mode.el (sqlite-mode-list-tables): Use sqlite_master instead of sqlite_schema, since the former name is the historical name and is available in all sqlite3 versions: https://sqlite.org/schematab.html
* Improve documentation of sqlite3 supportEli Zaretskii2021-12-111-1/+1
| | | | | | | | | | * lisp/sqlite-mode.el (sqlite-mode-list-data): * configure.ac (HAVE_SQLITE3): Fix typos. * doc/lispref/text.texi (Database): Improve and clarify wording, add index entries, mention all the function arguments. * etc/NEWS: Minor wording changes of the sqlite entries.
* Add confirmation to sqlite-mode-deleteLars Ingebrigtsen2021-12-111-0/+2
| | | | * lisp/sqlite-mode.el (sqlite-mode-delete): Add confirmation.
* Don't leave open cursors when listing sqlite dataLars Ingebrigtsen2021-12-111-32/+28
| | | | | | | * lisp/sqlite-mode.el (sqlite-mode-list-data) (sqlite--mode--list-data): Don't leave open cursor (because they block other processes from deleting stuff). (sqlite-mode-delete): Adjust to new layout.
* Add FIXME commentLars Ingebrigtsen2021-12-111-1/+4
| | | | | | * lisp/sqlite-mode.el (sqlite-mode-delete): New command. (sqlite--mode--list-data, sqlite-mode-list-data): Adjust to new command.
* Add an sqlite-mode-delete commandLars Ingebrigtsen2021-12-111-15/+54
| | | | | | * lisp/sqlite-mode.el (sqlite-mode-delete): New command. (sqlite--mode--list-data, sqlite-mode-list-data): Adjust to new command.
* Improve sqlite-mode--tablify tablesLars Ingebrigtsen2021-12-111-6/+9
| | | | | * lisp/sqlite-mode.el (sqlite-mode--tablify): Tweak column widths and sanitize newlines.
* Fix sqlite-mode.el build problemsLars Ingebrigtsen2021-12-111-1/+3
| | | | | * lisp/sqlite-mode.el (sqlite-mode-list-tables): Fix function rename usage.
* Add a new mode for examining sqlite filesLars Ingebrigtsen2021-12-111-0/+161
* lisp/sqlite-mode.el: New file.