[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql c85ab1f7b4 194/427: Enable foreign keys in SQLite
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql c85ab1f7b4 194/427: Enable foreign keys in SQLite by default. |
Date: |
Tue, 13 Dec 2022 02:59:41 -0500 (EST) |
branch: elpa/emacsql
commit c85ab1f7b4704c6ef1469328e9044e4693b1e4b0
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Enable foreign keys in SQLite by default.
---
emacsql-sqlite.el | 1 +
emacsql-tests.el | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index 6a12f719a9..778e3b9c44 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -61,6 +61,7 @@ buffer. This is for debugging purposes."
".separator ' '"
".nullvalue nil"
"PRAGMA busy_timeout = 30000;"
+ "PRAGMA foreign_keys = 1;"
".prompt ]"
"EMACSQL;")) ; error message flush
(when debug
diff --git a/emacsql-tests.el b/emacsql-tests.el
index e635d93999..31c6567bf6 100644
--- a/emacsql-tests.el
+++ b/emacsql-tests.el
@@ -217,7 +217,6 @@
"Tests that foreign keys work properly through Emacsql."
(emacsql-with-connection (db (emacsql-sqlite nil))
(emacsql-thread db
- [:pragma (= foreign_keys on)]
[:create-table person [(id integer :primary) name]]
[:create-table likes ([(personid integer) color]
:foreign (personid person id :on-delete :cascade))]
- [nongnu] elpa/emacsql ea613c5191 360/427: Push other sub-packages up to Emacs 25 as well, (continued)
- [nongnu] elpa/emacsql ea613c5191 360/427: Push other sub-packages up to Emacs 25 as well, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql fbda94e6b5 339/427: Improve some doc-strings., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 6f1e375a2e 367/427: Better escaping of NUL and control characters (#42), ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3dc6971829 190/427: Add ALTER TABLE stuff., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ef976b8649 189/427: Add package target for Makefile., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 672963ae53 191/427: Add DISTINCT option to :select., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b1da2ba9d2 297/427: Change compiler flag order (work around old gcc bug)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d21cc86540 188/427: Add lexical binding to tests., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3d556608ef 394/427: emacsql-mysql: Abort if mysql cannot be found, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 568e663032 193/427: Fold dashes into underscores in identifiers., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c85ab1f7b4 194/427: Enable foreign keys in SQLite by default.,
ELPA Syncer <=
- [nongnu] elpa/emacsql f51bb4bfaf 195/427: Allow foreign key specifications within columns., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c4abd187a3 196/427: Remove junk file., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3dfd0d4b8c 199/427: Fix missing argument typo., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 7341144e49 201/427: Fix ordering bug in emacsql--var-vars., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d8d4bf4b98 202/427: Add emacsql-with-transaction macro., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql dc178532e5 203/427: Add emacsql-with-bind., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql cc92c154ee 205/427: Disallow nil as an identifier., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 75c0c4aeb7 204/427: Tweak emacsql-with-bind macro., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3f38b357c3 206/427: Detect empty SQL vectors (better error messages)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ad24b1c508 208/427: Add JOIN syntax., ELPA Syncer, 2022/12/13