PHP 클래스 SqlParser\Utils\BufferedQuery

Implements a specialized lexer used to extract statements from large inputs that are being buffered. After each statement has been extracted, a lexer or a parser may be used. All comments are skipped, with one exception: MySQL commands inside /*!.
파일 보기 프로젝트 열기: phpmyadmin/sql-parser 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$current string The last incomplete query that was extracted.
$delimiter string The last delimiter used.
$delimiterLen integer The length of the delimiter.
$options array The options of this parser.
$query string This field can be modified just by appending to it!
$status integer The current status of the parser.

공개 메소드들

메소드 설명
__construct ( string $query = '', array $options = [] ) Constructor.
extract ( boolean $end = false ) : string Extracts a statement from the buffer.
setDelimiter ( string $delimiter ) Sets the delimiter.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $query = '', array $options = [] )
$query string The query to be parsed.
$options array The options of this parser.

extract() 공개 메소드

Extracts a statement from the buffer.
public extract ( boolean $end = false ) : string
$end boolean Whether the end of the buffer was reached.
리턴 string

setDelimiter() 공개 메소드

Used to update the length of it too.
public setDelimiter ( string $delimiter )
$delimiter string

프로퍼티 상세

$current 공개적으로 프로퍼티

The last incomplete query that was extracted.
public string $current
리턴 string

$delimiter 공개적으로 프로퍼티

The last delimiter used.
public string $delimiter
리턴 string

$delimiterLen 공개적으로 프로퍼티

The length of the delimiter.
public int $delimiterLen
리턴 integer

$options 공개적으로 프로퍼티

The options of this parser.
public array $options
리턴 array

$query 공개적으로 프로퍼티

This field can be modified just by appending to it!
public string $query
리턴 string

$status 공개적으로 프로퍼티

The current status of the parser.
public int $status
리턴 integer