Documentation

StatementParser
in package
implements Iterator

Class for parsing a stream into individual SQL statements.

Tags
author

Chuck Hagenbuch chuck@horde.org

author

James Pepin james@jamespepin.com

category

Horde

copyright

2006-2021 Horde LLC

license

http://www.horde.org/licenses/bsd

Interfaces, Classes, Traits and Enums

Iterator

Table of Contents

$count  : mixed
$currentStatement  : mixed
$file  : mixed
__construct()  : mixed
current()  : mixed
key()  : mixed
next()  : mixed
rewind()  : mixed
valid()  : mixed
getNextStatement()  : string
Read the next sql statement from our file. Statements are terminated by semicolons.

Properties

Methods

__construct()

public __construct(mixed $file) : mixed
Parameters
$file : mixed
Return values
mixed

getNextStatement()

Read the next sql statement from our file. Statements are terminated by semicolons.

protected getNextStatement() : string
Return values
string

The next SQL statement in the file.

Search results