-
Notifications
You must be signed in to change notification settings - Fork 34
PhpOrient PhpOrient
Class PhpOrient
- Class name: PhpOrient
- Namespace: PhpOrient
- This class implements: PhpOrient\Protocols\Common\ConfigurableInterface
const DATABASE_TYPE_DOCUMENT = \PhpOrient\Protocols\Common\Constants::DATABASE_TYPE_DOCUMENT
const DATABASE_TYPE_GRAPH = \PhpOrient\Protocols\Common\Constants::DATABASE_TYPE_GRAPH
const CLUSTER_TYPE_PHYSICAL = \PhpOrient\Protocols\Common\Constants::CLUSTER_TYPE_PHYSICAL
const CLUSTER_TYPE_MEMORY = \PhpOrient\Protocols\Common\Constants::CLUSTER_TYPE_MEMORY
const SERIALIZATION_DOCUMENT2CSV = \PhpOrient\Protocols\Common\Constants::SERIALIZATION_DOCUMENT2CSV
const SERIALIZATION_SERIAL_BIN = \PhpOrient\Protocols\Common\Constants::SERIALIZATION_SERIAL_BIN
const STORAGE_TYPE_LOCAL = \PhpOrient\Protocols\Common\Constants::STORAGE_TYPE_LOCAL
const STORAGE_TYPE_PLOCAL = \PhpOrient\Protocols\Common\Constants::STORAGE_TYPE_PLOCAL
const STORAGE_TYPE_MEMORY = \PhpOrient\Protocols\Common\Constants::STORAGE_TYPE_MEMORY
public string $hostname
The server host.
- Visibility: public
public string $port
The port for the server.
- Visibility: public
public string $username
The username for the server.
- Visibility: public
public string $password
The password for the server.
- Visibility: public
protected \PhpOrient\Protocols\Common\TransportInterface $_transport
The transport to use for the connection to the server.
- Visibility: protected
mixed PhpOrient\PhpOrient::__construct(string $hostname, string $port, string|boolean $token)
- Visibility: public
- $hostname string
The server host.
- $port string
The server port.
- $token string|boolean
An old connection Token to reuse, or a flag to set a new token instance initialization
\PhpOrient\PhpOrient PhpOrient\PhpOrient::setSessionToken(string|boolean $token)
connection credentials or a flag to set a new token instance initialization
- Visibility: public
- $token string|boolean
string PhpOrient\PhpOrient::getSessionToken()
- Visibility: public
\PhpOrient\PhpOrient PhpOrient\PhpOrient::setTransport(\PhpOrient\Protocols\Common\TransportInterface $transport)
- Visibility: public
\PhpOrient\Protocols\Binary\SocketTransport PhpOrient\PhpOrient::getTransport()
- Visibility: public
\PhpOrient\Protocols\Binary\Transaction\TxCommit PhpOrient\PhpOrient::getTransactionStatement()
- Visibility: public
\PhpOrient\Protocols\Binary\SocketTransport PhpOrient\PhpOrient::createTransport(\PhpOrient\Protocols\Common\TransportInterface|null $transport)
- Visibility: protected
- $transport PhpOrient\Protocols\Common\TransportInterface|null
mixed PhpOrient\PhpOrient::execute(string $operation, array $params)
- Visibility: public
- $operation string
The name of the operation to prepare.
- $params array
The parameters for the operation.
mixed PhpOrient\PhpOrient::connect(string $username, string $password, string $serializationType)
it needs to work with the server instance.
It returns the session id of the client.
- Visibility: public
- $username string
- $password string
- $serializationType string
mixed PhpOrient\PhpOrient::shutDown(string $username, string $password)
Requires "shutdown" permission to be set in orientdb-server-config.xml file
- Visibility: public
- $username string
- $password string
mixed PhpOrient\PhpOrient::command(string $query)
- Visibility: public
- $query string
mixed PhpOrient\PhpOrient::query(string $query, integer $limit, string $fetchPlan)
- Visibility: public
- $query string
- $limit integer
- $fetchPlan string
mixed PhpOrient\PhpOrient::queryAsync(string $query, Array $params)
A callback function is needed
- Visibility: public
- $query string
- $params Array
mixed PhpOrient\PhpOrient::sqlBatch(string $param)
- Visibility: public
- $param string
\PhpOrient\Protocols\Binary\Operations\RecordUpdate|\PhpOrient\Protocols\Binary\Data\Record PhpOrient\PhpOrient::recordUpdate(\PhpOrient\Protocols\Binary\Data\Record $record)
- Visibility: public
\PhpOrient\Protocols\Binary\Operations\RecordCreate|\PhpOrient\Protocols\Binary\Data\Record PhpOrient\PhpOrient::recordCreate(\PhpOrient\Protocols\Binary\Data\Record $record)
- Visibility: public
\PhpOrient\Protocols\Binary\Operations\RecordDelete|boolean PhpOrient\PhpOrient::recordDelete(\PhpOrient\Protocols\Binary\Data\ID $rid)
- Visibility: public
\PhpOrient\RecordLoad/Record PhpOrient\PhpOrient::recordLoad(\PhpOrient\Protocols\Binary\Data\ID $rid, array $params)
- Visibility: public
- $rid PhpOrient\Protocols\Binary\Data\ID
- $params array
integer|string PhpOrient\PhpOrient::dbSize()
- Visibility: public
\PhpOrient\Protocols\Common\ClusterMap PhpOrient\PhpOrient::dbReload()
- Visibility: public
true PhpOrient\PhpOrient::dbRelease(string $db_name, string $storage_type)
- Visibility: public
- $db_name string
- $storage_type string
\PhpOrient\Protocols\Common\ClusterMap PhpOrient\PhpOrient::dbOpen(string $database, string $username, string $password, array $params)
if it is not established before
- Visibility: public
- $database string
- $username string
- $password string
- $params array
{
'serializationType' => PhpOrient::SERIALIZATION_DOCUMENT2CSV, 'databaseType' => PhpOrient::DATABASE_TYPE_GRAPH }
array PhpOrient\PhpOrient::dbList()
- Visibility: public
boolean PhpOrient\PhpOrient::dbFreeze(string $db_name, string $storage_type)
Flushes all cached content to the disk storage and allows to perform only read commands
- Visibility: public
- $db_name string
- $storage_type string
boolean PhpOrient\PhpOrient::dbExists($database, string $database_type)
- Visibility: public
- $database mixed
- $database_type string
true PhpOrient\PhpOrient::dbDrop($database, string $storage_type)
- Visibility: public
- $database mixed
- $storage_type string
boolean PhpOrient\PhpOrient::dbCreate(string $database, string $storage_type, string $database_type)
- Visibility: public
- $database string
- $storage_type string
- $database_type string
integer|string PhpOrient\PhpOrient::dbCountRecords()
- Visibility: public
integer PhpOrient\PhpOrient::dbClose()
- Visibility: public
boolean PhpOrient\PhpOrient::dataClusterDrop(integer $cluster_id)
- Visibility: public
- $cluster_id integer
array<mixed,integer>|array<mixed,string> PhpOrient\PhpOrient::dataClusterDataRange(integer $cluster_id)
- Visibility: public
- $cluster_id integer
integer|string PhpOrient\PhpOrient::dataClusterCount(array $cluster_ids)
- Visibility: public
- $cluster_ids array
integer PhpOrient\PhpOrient::dataClusterAdd($cluster_name, string $cluster_type)
- Visibility: public
- $cluster_name mixed
- $cluster_type string
\PhpOrient\Protocols\Common\ConfigurableInterface PhpOrient\Protocols\Common\ConfigurableInterface::configure(array $options)
- Visibility: public
- This method is defined by PhpOrient\Protocols\Common\ConfigurableInterface
- $options array
The options for the object.
static PhpOrient\PhpOrient::fromConfig(array $options)
- Visibility: public
- This method is static.
- $options array
The options for the newly created class instance.