summaryrefslogtreecommitdiff
path: root/lisp/sqlite.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix 'with-sqlite-transaction'F. Jason Park2024-03-111-3/+4
| | | | | | | | | * lisp/sqlite.el (with-sqlite-transaction): Tuck misplaced body of else form back into feature-test control structure whence it escaped. (Bug#67142) * test/lisp/sqlite-tests.el: New file to accompany test/src/sqlite-tests.el.
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* Fix byte-compilation warnings about 'sqlite-rollback'Eli Zaretskii2023-11-241-0/+4
| | | | | | | * lisp/sqlite.el (sqlite-transaction, sqlite-commit) (sqlite-rollback): Declare. * lisp/emacs-lisp/multisession.el (sqlite-commit) (sqlite-transaction): Remove declaration.
* Fix 'with-sqlite-transaction' when BODY failsEli Zaretskii2023-11-211-6/+15
| | | | | | | | | | * lisp/sqlite.el (with-sqlite-transaction): Don't commit changes if BODY errors out. Roll back the transaction if committing fails. (Bug#67142) * etc/NEWS: * doc/lispref/text.texi (Database): Document the error handling in 'with-sqlite-transaction'.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
|
* Make with-sqlite-transaction mode code efficientLars Ingebrigtsen2021-12-121-5/+6
| | | | | * lisp/sqlite.el (with-sqlite-transaction): Rewrite to only include BODY once.
* Fix comment in headingLars Ingebrigtsen2021-12-111-1/+1
|
* Add sqlite3 support to EmacsLars Ingebrigtsen2021-12-111-0/+42
* configure.ac: Add check for the sqlite library. * doc/lispref/text.texi (Database): Document it. * lisp/sqlite.el: New file. * lisp/term/w32-win.el (dynamic-library-alist): Add a mapping. * src/Makefile.in (SQLITE3_LIBS): Add the libraries. * src/alloc.c (union emacs_align_type): Add a Lisp_Sqlite struct. * src/data.c (Ftype_of): Add sqlite. * src/emacs.c (main): Load the syms. * src/lisp.h (DEFINE_GDB_SYMBOL_BEGIN): Add PVEC_SQLITE. (GCALIGNED_STRUCT): New struct to keep data for sqlite database objects and statement objects. (SQLITEP, SQLITE, CHECK_SQLITE, XSQLITE): New macros for accessing the objects. * src/pdumper.c (dump_vectorlike): Update hash. (dump_vectorlike): Don't dump it. * src/print.c (print_vectorlike): Add a printer for the sqlite object. * src/sqlite.c: New file. * test/src/sqlite-tests.el: Add tests.