[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql cd5e856ea6 150/427: Add :autoincrement.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql cd5e856ea6 150/427: Add :autoincrement. |
Date: |
Tue, 13 Dec 2022 02:59:37 -0500 (EST) |
branch: elpa/emacsql
commit cd5e856ea6a9c7675bca68876bf438a69f0a621a
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Add :autoincrement.
---
README.md | 5 +++--
emacsql.el | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 6e85073a9a..d6d22ed5fa 100644
--- a/README.md
+++ b/README.md
@@ -60,8 +60,9 @@ can either be just this symbol or it can include constraints.
Because
Emacsql stores entire lisp objects as values, the only relevant (and
allowed) types are `integer`, `float`, and `object` (default).
-Columns constraints include `:primary` (aka `PRIMARY KEY`), `:unique`,
-`:non-nil` (aka `NOT NULL`), `:default`, and `:check`.
+Columns constraints include `:primary` (aka `PRIMARY KEY`),
+`:autoincrement`, `:unique`, `:non-nil` (aka `NOT NULL`), `:default`,
+and `:check`.
Table constraints can be `:primary`, `:unique`, `:check`, and `:foreign`.
diff --git a/emacsql.el b/emacsql.el
index c79d90b70e..3449777253 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -424,6 +424,7 @@ definitions for return from a `emacsql-defexpander'."
(let ((next (pop column)))
(cl-case next
(:primary (push "PRIMARY KEY" output))
+ (:autoincrement (push "AUTOINCREMENT" output))
(:non-nil (push "NOT NULL" output))
(:unique (push "UNIQUE" output))
(:default (push "DEFAULT" output)
- [nongnu] elpa/emacsql c4396ec5e6 057/427: Fix a bunch of warnings., (continued)
- [nongnu] elpa/emacsql c4396ec5e6 057/427: Fix a bunch of warnings., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e9fbc4a913 061/427: Fill out a Makefile., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 829298d5a7 063/427: Add dependency listing., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 231ec586ca 088/427: Drop forced process coding system., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql eba26bead6 102/427: Add emacsql-compile function for debugging., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d5cfaee783 158/427: Be more precise about error messages., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql f512300aba 054/427: Fix a few things in emacsql-expr., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e900f99091 075/427: Update examples., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1116a0873e 163/427: Turn everything into generic functions., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 47d9476a02 142/427: Add tests for quote operator., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql cd5e856ea6 150/427: Add :autoincrement.,
ELPA Syncer <=
- [nongnu] elpa/emacsql f31120edb6 155/427: Fix up documentation headers., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql adfbc7ed83 156/427: Add emacsql-show-last-sql., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 60d92d3051 159/427: Change the output mode to list., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d2f1bcef5d 165/427: Rename add-connection to register., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9dcfebfba7 030/427: Factor out schema->string code., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1f6c06bda9 050/427: Use expr expansion in :where expander., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 39aa16906a 034/427: Remove redundant wait., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql cda366379a 085/427: Add Windows note., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql db0159f138 032/427: Update README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 801bc6239f 222/427: Swap the tuple order., ELPA Syncer, 2022/12/13