StatementParser
in package
implements
Iterator
Class for parsing a stream into individual SQL statements.
Tags
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
$count
protected
mixed
$count
= 0
$currentStatement
protected
mixed
$currentStatement
$file
protected
mixed
$file
Methods
__construct()
public
__construct(mixed $file) : mixed
Parameters
- $file : mixed
Return values
mixed —current()
public
current() : mixed
Return values
mixed —key()
public
key() : mixed
Return values
mixed —next()
public
next() : mixed
Return values
mixed —rewind()
public
rewind() : mixed
Return values
mixed —valid()
public
valid() : 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.