Connection

 class Winter\Storm\Database\Connections\Connection
extends Illuminate\Database\Connection

Methods

public static flushDuplicateCache () : void

Flush the memory cache.

Returns
void

public logQuery (string $query, array $bindings, float | null $time = null) : void

Log a query in the connection's query log.

Parameters
Property Description
$query
string
$bindings
array
$time
float | null
Returns
void

public query () : Winter\Storm\Database\QueryBuilder

Get a new query builder instance.

Returns

protected fireConnectionEvent (string $event) : array | null

Fire an event for this connection.

Parameters
Property Description
$event
string
Returns
array | null

protected fireEvent (string $event, array $attributes = []) : void

Fire the given event if possible.

Parameters
Property Description
$event
string
$attributes
array
Returns
void
Copyright © 2024 Winter CMS