Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ktakashi/r6rs-sql-generator
A SQL generator for R6RS Scheme
https://github.com/ktakashi/r6rs-sql-generator
Last synced: 13 days ago
JSON representation
A SQL generator for R6RS Scheme
- Host: GitHub
- URL: https://github.com/ktakashi/r6rs-sql-generator
- Owner: ktakashi
- Created: 2015-03-23T12:15:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-23T12:16:27.000Z (over 9 years ago)
- Last Synced: 2024-10-06T01:23:02.536Z (about 1 month ago)
- Language: Scheme
- Size: 97.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SQL generator for R6RS Scheme
=============================Motivation
----------Writing SQL in Scheme script is pain in the A$$. It might be good if we
can write it in S-expression.Requirements
------------This library requires Andrew Wright's/Alex Shinn's pattern match library.
It must be named `(match)`.Currently it's tested on Sagittarius and Mosh.
Usage
-----```scheme
#!r6rs
(import (rnrs)
(text sql generator))(sexp->sql-string '(select * from a-table))
;; -> " select * from a-table "```
Supported SQL statements
------------------------TBD
`select`
`from`
`where`
and some expressions
Adding other queries
--------------------TBD
`define-sql-statement`
`define-sql-clause`
`define-sql-expression`