PHP Class Recca0120\LaravelTracy\Panels\DatabasePanel

Inheritance: extends AbstractPanel
Afficher le fichier Open project: recca0120/laravel-tracy

Protected Properties

Свойство Type Description
$counter integer $counter.
$eventName string $eventName.
$queries array $queries.
$totalTime float $totalTime.

Méthodes publiques

Méthode 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 méthode

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

formatSql() public static méthode

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

getAttributes() public méthode

getAttributes.
public getAttributes ( ) : array
Résultat array

getEventName() public méthode

getEventName.
public getEventName ( ) : string
Résultat string

logQuery() public méthode

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
Résultat self

performQueryAnalysis() public static méthode

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

prepareBindings() public static méthode

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

setEventName() public méthode

setEventName.
public setEventName ( $eventName )

subscribe() public méthode

subscribe.
public subscribe ( )

Property Details

$counter protected_oe property

$counter.
protected int $counter
Résultat integer

$eventName protected_oe property

$eventName.
protected string $eventName
Résultat string

$queries protected_oe property

$queries.
protected array $queries
Résultat array

$totalTime protected_oe property

$totalTime.
protected float $totalTime
Résultat float