Index Documentation

DbStatementCache
in package

Container to avoid having many prepared instances of the same query.

Table of Contents

Methods

__construct()  : mixed
clear()  : void
Closes all statement instances and resets the cache.
get()  : IDbStatement
Gets a cached or creates a new IDbStatement instance.
remove()  : void
Removes a cached statement from the cache.

Methods

clear()

Closes all statement instances and resets the cache.

public clear() : void

get()

Gets a cached or creates a new IDbStatement instance.

public get(string $query) : IDbStatement
Parameters
$query : string

SQL query.

Return values
IDbStatement

Statement representing the query.

remove()

Removes a cached statement from the cache.

public remove(string $query) : void
Parameters
$query : string

SQL query of the statement to remove from the cache.


        
On this page

Search results