PHP Class LazyRecord\TableParser\SqliteTableDefinitionParser

CREATE TABLE {identifier} ( columndef, columndef, ... ); The syntax follows the official documentation below: http://www.sqlite.org/lang_createtable.html
Afficher le fichier Open project: corneltek/lazyrecord Class Usage Examples

Méthodes publiques

Свойство Type Description
$intTypes
$numericTypes
$p integer The default buffer offset
$str string The buffer string for parsing.
$textTypes

Méthodes publiques

Méthode Description
__construct ( $str, $offset )
parse ( )
parseColumnDefinitions ( )

Méthodes protégées

Méthode 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 méthode

public __construct ( $str, $offset )

advance() protected méthode

protected advance ( $c = null )

consume() protected méthode

protected consume ( $token, $typeName )

cur() protected méthode

protected cur ( )

currentWindow() protected méthode

protected currentWindow ( $window = 20 )

looksLikeTableConstraint() protected méthode

protected looksLikeTableConstraint ( )

metComma() protected méthode

protected metComma ( )

metEnd() protected méthode

protected metEnd ( )

parse() public méthode

public parse ( )

parseColumnDefinitions() public méthode

parseColumnNames() protected méthode

protected parseColumnNames ( )

rollback() protected méthode

protected rollback ( $p )

skip() protected méthode

protected skip ( $tokens )

skipComma() protected méthode

protected skipComma ( )

skipSpaces() protected méthode

protected skipSpaces ( )

sortKeywordsByLen() protected méthode

protected sortKeywordsByLen ( array &$keywords )
$keywords array

test() protected méthode

protected test ( $str )

tryParseColumnConstraint() protected méthode

protected tryParseColumnConstraint ( )

tryParseIdentifier() protected méthode

protected tryParseIdentifier ( )

tryParseIndexColumns() protected méthode

protected tryParseIndexColumns ( )

tryParseKeyword() protected méthode

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

tryParseScalar() protected méthode

protected tryParseScalar ( )

tryParseTableConstraints() protected méthode

protected tryParseTableConstraints ( )

tryParseTypeName() protected méthode

protected tryParseTypeName ( )

tryParseTypePrecision() protected méthode

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
Résultat integer

$str public_oe property

The buffer string for parsing.
public string $str
Résultat string

$textTypes public_oe static_oe property

public static $textTypes