ODatabase

php\orientdb\ODatabase

Class ODatabase

Properties


property name

string

read-only

property url

string

read-only

property size

int

read-only

property status

string

read-only

OPEN, CLOSED, IMPORTING

property type

string

Methods


__construct($uri)
Parameters:
  • $uristring
setUser($name)
Parameters:
  • $namestring
setUserAndPassword($name, $password)
Parameters:
  • $namestring
  • $passwordstring
exists()
Returns:bool
create()
drop()
open($username, $password)

Open database

Parameters:
  • $usernamestring
  • $passwordstring
close()
reload()
freeze()
release()
begin()
commit($force = false)
Parameters:
  • $forcebool
rollback($force = false)
Parameters:
  • $forcebool
getDocuments($className)
Parameters:
  • $className
Returns:

php\util\Flow of ODocument

query($query, $limit = -1)
Parameters:
  • $querystring - like sql.
  • $limitint
Returns:

php\util\Flow of ODocument

command($query)
Parameters:
  • $querystring
Returns:

int