PHP Class r\Connection

Inheritance: extends DatumConverter
Mostrar archivo Open project: danielmewes/php-rql Class Usage Examples

Public Properties

Property Type Description
$defaultDbName

Public Methods

Method Description
__construct ( $optsOrHost = null, $port = null, $db = null, $apiKey = null, $timeout = null )
__destruct ( )
close ( $noreplyWait = true )
continueQuery ( $token )
isOpen ( )
noreplyWait ( )
reconnect ( $noreplyWait = true )
run ( r\Query $query, $options = [], &$profile = '' )
server ( )
setTimeout ( $timeout )
stopQuery ( $token )
useDb ( $dbName )

Private Methods

Method Description
applyTimeout ( $timeout )
checkResponse ( $response, $responseToken, $token, $query = null )
connect ( )
convertOptions ( $options )
createCursorFromResponse ( $response, $token, $notes, $toNativeOptions )
createDatumFromResponse ( $response )
generateToken ( )
receiveResponse ( $token, $query = null, $noChecks = false )
receiveStr ( $length )
sendQuery ( $token, $json )
sendStr ( $s )

Method Details

__construct() public method

public __construct ( $optsOrHost = null, $port = null, $db = null, $apiKey = null, $timeout = null )

__destruct() public method

public __destruct ( )

close() public method

public close ( $noreplyWait = true )

continueQuery() public method

public continueQuery ( $token )

isOpen() public method

public isOpen ( )

noreplyWait() public method

public noreplyWait ( )

reconnect() public method

public reconnect ( $noreplyWait = true )

run() public method

public run ( r\Query $query, $options = [], &$profile = '' )
$query r\Query

server() public method

public server ( )

setTimeout() public method

public setTimeout ( $timeout )

stopQuery() public method

public stopQuery ( $token )

useDb() public method

public useDb ( $dbName )

Property Details

$defaultDbName public_oe property

public $defaultDbName