[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 0d901004b9 4/6: emacsql-sqlite-open: Ensure direct
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 0d901004b9 4/6: emacsql-sqlite-open: Ensure directory containing database file exists |
Date: |
Sun, 17 Nov 2024 18:59:37 -0500 (EST) |
branch: elpa/emacsql
commit 0d901004b9b01965375505b51bdad780e53b1718
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
emacsql-sqlite-open: Ensure directory containing database file exists
---
emacsql-sqlite.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index d799db1626..1d2433e053 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -110,6 +110,8 @@ purposes. Always enable support for foreign key constrains.
If optional SETUP is non-nil, it must be a function, which takes the
connection as only argument. This function can be used to initialize
tables, for example."
+ (when file
+ (make-directory (file-name-directory file) t))
(let* ((class (emacsql-sqlite-default-connection))
(connection (make-instance class :file file)))
(when debug
- [nongnu] elpa/emacsql updated (be76529215 -> 937d45a1c3), ELPA Syncer, 2024/11/17
- [nongnu] elpa/emacsql 0d901004b9 4/6: emacsql-sqlite-open: Ensure directory containing database file exists,
ELPA Syncer <=
- [nongnu] elpa/emacsql 05b7a25d73 3/6: emacsql-sqlite-open: Add SETUP argument, ELPA Syncer, 2024/11/17
- [nongnu] elpa/emacsql c6e05560be 1/6: emacsql-sqlite-open: Fix typo in doc-string, ELPA Syncer, 2024/11/17
- [nongnu] elpa/emacsql 44b4f89407 2/6: emacsql-sqlite-open: Enable foreign key constrains, ELPA Syncer, 2024/11/17
- [nongnu] elpa/emacsql c8fceaf236 5/6: emacsql-sqlite-connection: New function, ELPA Syncer, 2024/11/17
- [nongnu] elpa/emacsql 937d45a1c3 6/6: make: Compile emacsql-sqlite.el, ELPA Syncer, 2024/11/17