2017 © Pedro Peláez
 

package orientdb-query

Wrapper for Doctrine\OrientDB Query subpackage

image

spartaksun/orientdb-query

Wrapper for Doctrine\OrientDB Query subpackage

  • Tuesday, August 18, 2015
  • by spartaksun
  • Repository
  • 1 Watchers
  • 1 Stars
  • 577 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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., (*1)

To take advantage of the QB you only have to instantiate a Query object:, (*2)

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..., (*3)

You can use also those commands:, (*4)

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., (*5)

The Versions

18/08 2015

dev-master

9999999-dev

Wrapper for Doctrine\OrientDB Query subpackage

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0