[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 85076dfe0f 027/427: Flesh out example more.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 85076dfe0f 027/427: Flesh out example more. |
Date: |
Tue, 13 Dec 2022 02:59:25 -0500 (EST) |
branch: elpa/emacsql
commit 85076dfe0f8f4cd8910eea15cc04343073be3fcf
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Flesh out example more.
---
README.md | 8 ++++----
emacsql.el | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 057f940ba9..082143f52d 100644
--- a/README.md
+++ b/README.md
@@ -19,14 +19,14 @@ Requires Emacs 24 or later.
(defvar db (emacsql-connect "company.db"))
;; Create a table. A table identifier can be any kind of lisp value.
-(emacsql-create db :employees '(name id salary))
+(emacsql-create db :employees [name id salary])
;; Or optionally provide column constraints.
-(emacsql-create db :employees '((name text) (id integer) salary))
+(emacsql-create db :employees [(name text) (id integer) (salary real)])
;; Insert some data:
-(emacsql-insert db :employees ["Jeff" 1000 60000]
- ["Susan" 1001 64000])
+(emacsql-insert db :employees ["Jeff" 1000 60000.0]
+ ["Susan" 1001 64000.0])
;; The high-level SELECT interface is a work in progress.
(emacsql-select-raw db (concat "SELECT name, id FROM ':employees' "
diff --git a/emacsql.el b/emacsql.el
index ebefea0f5d..865930eb68 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -21,16 +21,16 @@
;; Table identifiers can be any lisp object: string, symbol, etc. I
;; suggest using a keyword. Use `emacsql-create' to create a table.
-;; (emacsql-create db :employees '(name id salary))
+;; (emacsql-create db :employees [name id salary])
;; Column constraints can optionally be provided.
-;; (emacsql-create db :employees '((name text) (id integer) salary))
+;; (emacsql-create db :employees [(name text) (id integer) (salary real)])
;; Insert values into a table with `emacsql-insert'.
-;; (emacsql-insert db :employees ["Jeff" 1000 60000]
-;; ["Susan" 1001 64000])
+;; (emacsql-insert db :employees ["Jeff" 1000 60000.0]
+;; ["Susan" 1001 64000.0])
;; Currently all actions are synchronous and Emacs will block until
;; SQLite has indicated it is finished processing the last command.
- [nongnu] elpa/emacsql 4a89bfaf44 044/427: Use a macro to greatly simplify expanders., (continued)
- [nongnu] elpa/emacsql 4a89bfaf44 044/427: Use a macro to greatly simplify expanders., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql eb10ddcdba 004/427: Error-free reaping since it's automatic., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a6dbb52a3c 009/427: Add flatten option., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 2053a15b21 010/427: Add Emacs requirement note., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 961c689269 011/427: Rename information to constraints., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c7a8ef0908 015/427: Rename every emacsql argument to conn., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d083cbb70e 017/427: Add in-memory database support., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9091fe8df5 019/427: Rename sqlite-program-name into namespace., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9c3293c57e 020/427: Add a docstring to emacsql struct., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 178a31d5ca 024/427: Lock in the coding system., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 85076dfe0f 027/427: Flesh out example more.,
ELPA Syncer <=
- [nongnu] elpa/emacsql c9854331c0 028/427: Add (un)license header., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 896bb7ce52 035/427: Start adding SQL expanders., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9272d13ace 036/427: Add some tests for the expanders., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3511a0df1d 037/427: Add a top-level query function, emacsql., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 7e18a43da1 039/427: Add a template example., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 8b2cf8c208 041/427: Fix up :where., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c92c56ce55 003/427: Add a close buffer sentinel., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1a84c983cf 013/427: No named results by default., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 76a430032e 014/427: Fix up old test., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 36c6aae4b5 042/427: Drop raw select., ELPA Syncer, 2022/12/13