aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/sqlite-tests.el (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-01-02Update copyright year to 2025Stefan Kangas1-1/+1
Run "TZ=UTC0 admin/update-copyright".
2025-01-01Update copyright year to 2025Paul Eggert1-1/+1
Run "TZ=UTC0 admin/update-copyright".
2024-07-10* test/src/sqlite-tests.el (sqlite-execute-batch): Declare to wave warning.Andrea Corallo1-0/+1
2024-06-06Add 'sqlite-execute-batch' commandJavier Olaechea1-0/+26
This command is similar to 'sqlite-execute' except that it executes multiple statements in exchange for not accepting any arguments. (Bug#70145) * src/sqlite.c (Fsqlite_execute_batch): New function. * test/src/sqlite-tests.el (sqlite-multiple-statements): Add smoke test for 'sqlite-execute-batch'. * etc/NEWS: Mention new command 'sqlite-execute-batch'. * doc/lispref/text.texi (Database): Document the new command.
2024-01-02; Add 2024 to copyright yearsPo Lu1-1/+1
2023-05-20Fix loading SQLite extensionsEli Zaretskii1-9/+14
* src/sqlite.c (sqlite3_db_config) [WINDOWSNT]: Load from the DLL. (Fsqlite_load_extension): Use 'sqlite3_db_config' to enable and disable loading of extensions. Add a few free extensions to the allow-list. Fix testing for the ".dll" extension. (Bug#63590) * test/src/sqlite-tests.el (sqlite-load-extension): Fix the test to require successful load if the extension does exist.
2023-01-01; Add 2023 to copyright years.Eli Zaretskii1-1/+1
2022-12-10Resurrect changes omitted by a recent merge from emacs-29 (bug#59921)Eli Zaretskii1-0/+1
This includes the changes for the following commits: 670daa8b b429e524 c83c95634e7 6479691cf07 b710ca62c00 d31a2539834 a669d5fae54 f7262b8f81e fef17557365 bf81df86e52 bfc00f1c120 d2411615e8b dcf69a1d
2022-12-07* test/src/sqlite-tests.el (sqlite-version): Declare.Mattias Engdegård1-0/+1
2022-11-25Add sqlite library version string retrieval function (bug#58766)Mattias Engdegård1-0/+1
* src/sqlite.c (sqlite3_libversion, load_dll_functions): Make sqlite3_libversion available. (Fsqlite_version): New. (syms_of_sqlite): Define sqlite-version. * doc/lispref/text.texi (Database): Document. * test/src/sqlite-tests.el (sqlite-returning): `RETURNING` was added in sqlite 3.35; skip the test for older versions.
2022-10-10Add a test for sqlite "insert ... returning"Lars Ingebrigtsen1-0/+13
* test/src/sqlite-tests.el (sqlite-returning): Add a test for "insert ... returning".
2022-04-28Allow inserting and selecting binary blobs from sqliteLars Ingebrigtsen1-0/+25
* doc/lispref/text.texi (Database): Document how to insert binary data. * src/sqlite.c (bind_values): Bind BLOB columns correctly (bug#54591).
2022-01-01; Add 2022 to copyright years.Eli Zaretskii1-1/+1
2021-12-20Silence byte-compiler warnings from absent optional featuresMattias Engdegård1-0/+1
* test/src/inotify-tests.el (inotify-rm-watch): * test/src/lcms-tests.el (lcms-xyz->jch): * test/src/sqlite-tests.el (sqlite-open): Add declarations to prevent byte-compilation warnings when features are absent.
2021-12-16Skip extension tests on hosts without the functionLars Ingebrigtsen1-0/+1
2021-12-14Only allow SQLite extensions from an allowlistLars Ingebrigtsen1-0/+32
* src/sqlite.c (Fsqlite_load_extension): Only allow extensions from an allowlist.
2021-12-12Fix some compilation warnings in sqlite-less buildsdick r. chiang1-0/+10
* test/src/sqlite-tests.el: * lisp/sqlite-mode.el: Avoid compilation warnings in builds without libsqlite (bug#52440).
2021-12-11Fix Fsqlite_finalize book-keepingLars Ingebrigtsen1-1/+3
* src/sqlite.c (Fsqlite_finalize): Mark the object as dead.
2021-12-11Fix some sqlite doc string typosLars Ingebrigtsen1-2/+0
* src/sqlite.c (Fsqlite_load_extension, Fsqlite_more_p): Fix typos in doc strings.
2021-12-11Add sqlite3 support to EmacsLars Ingebrigtsen1-0/+175
* 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.