Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spartaksun/orientdb-query
Wrapper to OrientDb query builder
https://github.com/spartaksun/orientdb-query
Last synced: 1 day ago
JSON representation
Wrapper to OrientDb query builder
- Host: GitHub
- URL: https://github.com/spartaksun/orientdb-query
- Owner: spartaksun
- License: apache-2.0
- Created: 2015-08-14T09:24:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-18T09:08:15.000Z (over 9 years ago)
- Last Synced: 2024-05-05T18:02:55.366Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 172 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Current status of the query builder
The query-builder is finished, in the future we will consider the integration of OrientDB
Graph Edition: http://code.google.com/p/orient/wiki/GraphEdTutorial.To take advantage of the QB you only have to instantiate a Query object:
```
use Doctrine\OrientDB\Query\Query;$query = new Query();
$query->from(array('users'))->where('username = ?', "admin");echo $query->getRaw(); // SELECT FROM users WHERE username = "admin"
```The Query object incapsulates lots of sub-commands, like SELECT, DROP, GRANT, INSERT
and so on...You can use also those commands:
```
use Doctrine\OrientDB\Query\Command\Select;$select = new Select(array('users'));
echo $select->getRaw(); // SELECT FROM users
```However, we strongly discourage this approach: commands will change, Query, thought as a facade, - hopefully - not.