An open API service indexing awesome lists of open source software.

https://github.com/guidofaecke/jsondbquery

SQL builder
https://github.com/guidofaecke/jsondbquery

doctrine2 json php php-library rest sql zend-framework zf2 zf3

Last synced: about 1 month ago
JSON representation

SQL builder

Awesome Lists containing this project

README

          

# JsonDbQuery

[![Build Status](https://travis-ci.org/guidofaecke/jsonDbQuery.svg?branch=master)](https://travis-ci.org/guidofaecke/jsonDbQuery)

Build simple queries with JSON via REST and RPC calls.

Planned support
- Doctrine
- Zend-Db
- raw SQL

## Usage examples
### (not yet finalized)

http:///api/get_some_data?query={"field" : {"$not" : val}}
http:///api/get_some_data?query={"field" : {"$in" : [value1, value2, ...]}}
http:///api/get_some_data?query={"$or": [{"status": "BLUE"}, {"status": "RED"}]}
http:///api/get_some_data?query={"amount": {"$gt": 500}}
http:///api/get_some_data?query={"amount": {"$lte": 500}}
http:///api/get_some_data?query={"amount": {"$bt": [300, 640]}}