[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql d7a05db54e 080/427: Add :replace expander.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql d7a05db54e 080/427: Add :replace expander. |
Date: |
Tue, 13 Dec 2022 02:59:30 -0500 (EST) |
branch: elpa/emacsql
commit d7a05db54e3be730050888b3dafd348eadf9e333
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Add :replace expander.
---
README.md | 8 ++++++++
emacsql.el | 3 +++
2 files changed, 11 insertions(+)
diff --git a/README.md b/README.md
index d40356bc83..452faa7b90 100644
--- a/README.md
+++ b/README.md
@@ -161,6 +161,14 @@ Provides `INSERT`.
[:insert :into employees ...]
```
+#### :replace
+
+Provides `REPLACE`.
+
+```el
+[:replace :into employees ...]
+```
+
#### :values `<vector>|(<vector> ...)`
```el
diff --git a/emacsql.el b/emacsql.el
index c378d65cf3..a3ea075d2d 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -468,6 +468,9 @@ definitions for return from a `emacsql-defexpander'."
(emacsql-defexpander :insert ()
(list "INSERT"))
+(emacsql-defexpander :replace ()
+ (list "REPLACE"))
+
(emacsql-defexpander :values (values)
(emacsql-with-vars "VALUES "
(var values :vector)))
- [nongnu] elpa/emacsql ff59ca9336 265/427: Clear out binaries in distclean, too., (continued)
- [nongnu] elpa/emacsql ff59ca9336 265/427: Clear out binaries in distclean, too., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 00bb81ff2b 266/427: Fix Makefile typo., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c8de0ff1fd 293/427: Adjust the EmacSQL protocol., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 51224aab7a 288/427: Add unit test for last change., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c5845884f4 021/427: Rename type to column., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 7caa63c11e 023/427: Allow any sequence for table spec., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 963f221b82 049/427: Add expr expansion function., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 109664b88b 060/427: Memoize emacsql-expand., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1fb97f7d4a 092/427: Drop unusable macro emacsql-with-connection., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql add06c47b9 117/427: Bring back :into for :replace (oops!)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d7a05db54e 080/427: Add :replace expander.,
ELPA Syncer <=
- [nongnu] elpa/emacsql 0f0840ffbf 128/427: Add :default column constraint., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql bbe3031a50 130/427: Add table constraints., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 53b2e98515 131/427: Fill out README for new schema table constraints., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 364c3cacb6 133/427: More advanced :from sources, again., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 99a8069389 135/427: Add support for foreign keys., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e6ab07e16b 140/427: Switch to a friendlier name., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql bec6af6940 148/427: Add VACUUM., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 03aebdecd1 160/427: Rename :log option to :debug., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql bb221f6134 161/427: Drop .print command flushing., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 72b34f6522 173/427: Add some more autoloading., ELPA Syncer, 2022/12/13