PHP Class Recca0120\LaravelTracy\Panels\DatabasePanel

Inheritance: extends AbstractPanel
显示文件 Open project: recca0120/laravel-tracy

Protected Properties

Property Type Description
$counter integer $counter.
$eventName string $eventName.
$queries array $queries.
$totalTime float $totalTime.

Public Methods

Method Description
explain ( PDO $pdo, string $sql, array $bindings = [] ) : array explain sql.
formatSql ( string $sql, array $params = null, PDO $connection = null ) : string Returns syntax highlighted SQL command.
getAttributes ( ) : array getAttributes.
getEventName ( ) : string getEventName.
logQuery ( string $sql, array $bindings = [], integer $time, string $name = null, PDO $pdo = null, string $driver = 'mysql' ) : self logQuery.
performQueryAnalysis ( string $sql, string $version = null, float $driver = null ) : array perform quer analysis hint.
prepareBindings ( string $sql, array $bindings = [] ) : string prepare sql.
setEventName ( $eventName ) setEventName.
subscribe ( ) subscribe.

Method Details

explain() public static method

explain sql.
public static explain ( PDO $pdo, string $sql, array $bindings = [] ) : array
$pdo PDO
$sql string
$bindings array
return array

formatSql() public static method

Returns syntax highlighted SQL command.
public static formatSql ( string $sql, array $params = null, PDO $connection = null ) : string
$sql string
$params array
$connection PDO
return string

getAttributes() public method

getAttributes.
public getAttributes ( ) : array
return array

getEventName() public method

getEventName.
public getEventName ( ) : string
return string

logQuery() public method

logQuery.
public logQuery ( string $sql, array $bindings = [], integer $time, string $name = null, PDO $pdo = null, string $driver = 'mysql' ) : self
$sql string
$bindings array
$time integer
$name string
$pdo PDO
$driver string
return self

performQueryAnalysis() public static method

perform quer analysis hint.
public static performQueryAnalysis ( string $sql, string $version = null, float $driver = null ) : array
$sql string
$version string
$driver float
return array

prepareBindings() public static method

prepare sql.
public static prepareBindings ( string $sql, array $bindings = [] ) : string
$sql string
$bindings array
return string

setEventName() public method

setEventName.
public setEventName ( $eventName )

subscribe() public method

subscribe.
public subscribe ( )

Property Details

$counter protected_oe property

$counter.
protected int $counter
return integer

$eventName protected_oe property

$eventName.
protected string $eventName
return string

$queries protected_oe property

$queries.
protected array $queries
return array

$totalTime protected_oe property

$totalTime.
protected float $totalTime
return float