PHP Class LazyRecord\TableParser\SqliteTableDefinitionParser

CREATE TABLE {identifier} ( columndef, columndef, ... ); The syntax follows the official documentation below: http://www.sqlite.org/lang_createtable.html
ファイルを表示 Open project: corneltek/lazyrecord Class Usage Examples

Public Properties

Property Type Description
$intTypes
$numericTypes
$p integer The default buffer offset
$str string The buffer string for parsing.
$textTypes

Public Methods

Method Description
__construct ( $str, $offset )
parse ( )
parseColumnDefinitions ( )

Protected Methods

Method Description
advance ( $c = null )
consume ( $token, $typeName )
cur ( )
currentWindow ( $window = 20 )
looksLikeTableConstraint ( )
metComma ( )
metEnd ( )
parseColumnNames ( )
rollback ( $p )
skip ( $tokens )
skipComma ( )
skipSpaces ( )
sortKeywordsByLen ( array &$keywords )
test ( $str )
tryParseColumnConstraint ( )
tryParseIdentifier ( )
tryParseIndexColumns ( )
tryParseKeyword ( array $keywords, $as = 'keyword' )
tryParseScalar ( )
tryParseTableConstraints ( )
tryParseTypeName ( )
tryParseTypePrecision ( )

Method Details

__construct() public method

public __construct ( $str, $offset )

advance() protected method

protected advance ( $c = null )

consume() protected method

protected consume ( $token, $typeName )

cur() protected method

protected cur ( )

currentWindow() protected method

protected currentWindow ( $window = 20 )

looksLikeTableConstraint() protected method

protected looksLikeTableConstraint ( )

metComma() protected method

protected metComma ( )

metEnd() protected method

protected metEnd ( )

parse() public method

public parse ( )

parseColumnDefinitions() public method

parseColumnNames() protected method

protected parseColumnNames ( )

rollback() protected method

protected rollback ( $p )

skip() protected method

protected skip ( $tokens )

skipComma() protected method

protected skipComma ( )

skipSpaces() protected method

protected skipSpaces ( )

sortKeywordsByLen() protected method

protected sortKeywordsByLen ( array &$keywords )
$keywords array

test() protected method

protected test ( $str )

tryParseColumnConstraint() protected method

protected tryParseColumnConstraint ( )

tryParseIdentifier() protected method

protected tryParseIdentifier ( )

tryParseIndexColumns() protected method

protected tryParseIndexColumns ( )

tryParseKeyword() protected method

protected tryParseKeyword ( array $keywords, $as = 'keyword' )
$keywords array

tryParseScalar() protected method

protected tryParseScalar ( )

tryParseTableConstraints() protected method

protected tryParseTableConstraints ( )

tryParseTypeName() protected method

protected tryParseTypeName ( )

tryParseTypePrecision() protected method

protected tryParseTypePrecision ( )

Property Details

$intTypes public_oe static_oe property

public static $intTypes

$numericTypes public_oe static_oe property

public static $numericTypes

$p public_oe property

The default buffer offset
public int $p
return integer

$str public_oe property

The buffer string for parsing.
public string $str
return string

$textTypes public_oe static_oe property

public static $textTypes