ODatabase¶
-
php\orientdb\ODatabase
Class ODatabase
Properties
Methods
__construct
($uri)¶
Параметры:
- $uri –
string
setUser
($name)¶
Параметры:
- $name –
string
setUserAndPassword
($name, $password)¶
Параметры:
- $name –
string
- $password –
string
exists
()¶
Результат: bool
create
()¶
drop
()¶
open
($username, $password)¶Open database
Параметры:
- $username –
string
- $password –
string
close
()¶
reload
()¶
freeze
()¶
release
()¶
begin
()¶
commit
($force = false)¶
Параметры:
- $force –
bool
rollback
($force = false)¶
Параметры:
- $force –
bool
getDocuments
($className)¶
Параметры:
- $className –
Результат: php\util\Flow of ODocument
query
($query, $limit = -1)¶
Параметры:
- $query –
string
- like sql.- $limit –
int
Результат: php\util\Flow of ODocument
command
($query)¶
Параметры:
- $query –
string
Результат:
int