Skip to content

resetState

Corey Avis edited this page Sep 23, 2026 · 2 revisions

resetState [Protected]

Resets all internal query builder variables and state tracking to their default values. This ensures that subsequent SQL statements executed by the same class instance are built from a clean slate, preventing data bleed between queries.

This method is typically called automatically at the end of a query execution lifecycle.

Usage

resetState(): bool

Parameters

  • Takes no arguments.

Return Value

(bool) : Returns true upon successful reset.

Examples

$db->resetState()

Debug Errors

  • No debug errors.

Home | CoreyDB | Helpers

Clone this wiki locally