ConnectionEstablished.php
2 weeks ago
ConnectionEvent.php
2 years ago
DatabaseBusy.php
2 weeks ago
DatabaseRefreshed.php
2 years ago
MigrationEnded.php
2 years ago
MigrationEvent.php
2 years ago
MigrationStarted.php
2 years ago
MigrationsEnded.php
2 years ago
MigrationsEvent.php
2 years ago
MigrationsStarted.php
2 years ago
ModelsPruned.php
2 years ago
NoPendingMigrations.php
2 years ago
QueryExecuted.php
2 years ago
SchemaDumped.php
2 years ago
SchemaLoaded.php
2 years ago
StatementPrepared.php
2 years ago
TransactionBeginning.php
2 years ago
TransactionCommitted.php
2 years ago
TransactionCommitting.php
2 weeks ago
TransactionRolledBack.php
2 years ago
QueryExecuted.php
56 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Database\Events; |
| 4 | |
| 5 | /** @internal */ |
| 6 | class QueryExecuted |
| 7 | { |
| 8 | /** |
| 9 | * The SQL query that was executed. |
| 10 | * |
| 11 | * @var string |
| 12 | */ |
| 13 | public $sql; |
| 14 | /** |
| 15 | * The array of query bindings. |
| 16 | * |
| 17 | * @var array |
| 18 | */ |
| 19 | public $bindings; |
| 20 | /** |
| 21 | * The number of milliseconds it took to execute the query. |
| 22 | * |
| 23 | * @var float |
| 24 | */ |
| 25 | public $time; |
| 26 | /** |
| 27 | * The database connection instance. |
| 28 | * |
| 29 | * @var \Illuminate\Database\Connection |
| 30 | */ |
| 31 | public $connection; |
| 32 | /** |
| 33 | * The database connection name. |
| 34 | * |
| 35 | * @var string |
| 36 | */ |
| 37 | public $connectionName; |
| 38 | /** |
| 39 | * Create a new event instance. |
| 40 | * |
| 41 | * @param string $sql |
| 42 | * @param array $bindings |
| 43 | * @param float|null $time |
| 44 | * @param \Illuminate\Database\Connection $connection |
| 45 | * @return void |
| 46 | */ |
| 47 | public function __construct($sql, $bindings, $time, $connection) |
| 48 | { |
| 49 | $this->sql = $sql; |
| 50 | $this->time = $time; |
| 51 | $this->bindings = $bindings; |
| 52 | $this->connection = $connection; |
| 53 | $this->connectionName = $connection->getName(); |
| 54 | } |
| 55 | } |
| 56 |