Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudolfochrist/jasql
Simple SQL in Common Lisp
https://github.com/rudolfochrist/jasql
common-lisp lisp postgresql sqlite
Last synced: 18 days ago
JSON representation
Simple SQL in Common Lisp
- Host: GitHub
- URL: https://github.com/rudolfochrist/jasql
- Owner: rudolfochrist
- License: mpl-2.0
- Created: 2020-12-19T10:53:05.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T17:55:28.000Z (3 months ago)
- Last Synced: 2024-12-05T17:46:45.280Z (about 2 months ago)
- Topics: common-lisp, lisp, postgresql, sqlite
- Language: Common Lisp
- Homepage: https://rudolfochrist.github.io/jasql
- Size: 424 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
# -*- mode: org; -*-
#+MACRO: version (eval (with-temp-buffer (insert-file-contents-literally "../version" nil) (buffer-substring-no-properties (point-min) (point-max))))
#+STARTUP: showall
#+OPTIONS: toc:nil author:nil
* NAMEjasql --- Simple SQL in Common Lisp. A direct port of Python's anosql.
* SYNOPSIS
On the SQL side:
#+begin_src sql
-- name: get-all-articles
-- Retreive all articles.
SELECT * FROM articles;-- name: add-new-article!
-- Adds a new articles.
INSERT INTO articles
(title, author)
VALUES
(:title, :author);
#+end_srcOn the Lisp side:
#+begin_src lisp
(jasql:load-sql "sql/articles.sql" :system "blog")(add-new-article *db* :title "On lisp" :author "paulg")
(get-all-articles *db*)
#+end_src* DESCRIPTION
=jasql= is a direct port of [[https://github.com/honza/anosql][anosql]] from Python to Common Lisp. A [[https://github.com/krisajenkins/yesql/][Yesql]]-style SQL library.
For more documentation read the Info file.
** INSTALLATION
=jasql= is not in Quicklisp. Either put it into QL's local projects or to any other place where
QL/ASDF can find it.You can run ~make install~ to install it to =/usr/local/lisp/jasql= or any other =prefix= ASDF knows about.
* AUTHOR
Sebastian Christ ([[mailto:[email protected]]])
* LICENSE
Released under the MPL-2.0 license.
* SEE ALSO
- [[https://github.com/honza/anosql]]
- [[https://github.com/ruricolist/cl-yesql]]