spartaksun / orientdb-query
Wrapper for Doctrine\OrientDB Query subpackage
Installs: 588
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-01-19 01:53:44 UTC
README
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.