https://github.com/mmcloughlin/rqc
Redis query compiler
https://github.com/mmcloughlin/rqc
Last synced: 3 months ago
JSON representation
Redis query compiler
- Host: GitHub
- URL: https://github.com/mmcloughlin/rqc
- Owner: mmcloughlin
- License: mit
- Created: 2015-06-23T16:30:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-25T07:31:46.000Z (over 10 years ago)
- Last Synced: 2025-07-22T02:13:15.487Z (3 months ago)
- Language: Go
- Size: 129 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rqc
[](https://travis-ci.org/mmcloughlin/rqc)
Redis query compiler (rqc) generates lua scripts to execute selection queries
on redis sets.> Still under development.
## Installation
```
go get github.com/mmcloughlin/rqc
```## Usage
Create a query builder with
```go
builder := Builder{
Conn: conn,
Namespace: "queries",
}
```Here `Conn` is expected to be a [redigo](github.com/garyburd/redigo/redis)
redis connection. `Namespace` is a prefix for all intermediate keys produced
in query execution.## Acknowledgements
There are a few similar projects out there and I learned a lot from digging
around in their source code:* [Zoom](https://github.com/albrow/zoom) is an awesome library that offers
similar funtionality at a higher level* [django redis engine](https://github.com/MirkoRossini/django-redis-engine)
also contains very similar ideas