Свойство | Type | Description | |
---|---|---|---|
ch | char | ||
curIndex | int | ||
eofIndex | int | ||
inCStyleComment | bool | ||
inCStyleCommentIgnore | bool | ||
offsetCache | int | ||
sbuf | char[] | ||
sbufRef | ThreadLocal |
||
sizeCache | int | ||
sql | char[] |
Méthode | Description | |
---|---|---|
AddCacheToke ( MySqlToken token ) : void | ||
AppendStringContent ( StringBuilder sb ) : void |
if GetStringValue returns "'abc\\'d'", then "abc\\'d" is appended
|
|
GetDecimalValue ( ) : BigDecimal | ||
GetIntegerValue ( ) : |
token must be MySqlToken.LiteralNumPureDigit
|
|
GetStringValue ( ) : string |
make sense for those types of token:
|
|
GetStringValueUppercase ( ) : string |
for MySqlToken.Identifier , MySqlToken.SysVar
|
|
MySqlLexer ( char sql ) : System | ||
MySqlLexer ( string sql ) : System | ||
NextToken ( ) : MySqlToken | ||
SetCStyleCommentVersion ( int version ) : int | ||
ToString ( ) : string | ||
Token ( ) : MySqlToken |
Méthode | Description | |
---|---|---|
Eof ( ) : bool | ||
Err ( string msg ) : |
always throw SqlSyntaxErrorException
|
|
HasChars ( int howMany ) : bool | ||
PutChar ( char ch, int index ) : void |
Append a character to sbuf.
|
|
ScanBitField ( bool quoteMode ) : void | ||
ScanChar ( ) : char | ||
ScanChar ( int skip ) : char | ||
ScanHexaDecimal ( bool quoteMode ) : void | ||
ScanIdentifier ( ) : void |
id is NOT included in
|
|
ScanIdentifierWithAccent ( ) : void |
id is included in id is included in |
|
ScanNumber ( ) : void |
if first char is
|
|
ScanPlaceHolder ( ) : void |
not Sql syntax
|
|
ScanString ( ) : void | ||
ScanSystemVariable ( ) : void |
first
|
|
ScanUserVariable ( ) : void |
first
|
|
SkipSeparator ( ) : void |
skip whitespace and comment
|
|
UpdateStringValue ( char src, int srcOffset, int len ) : void |
update stringValue and stringValueUppercase . It is possible that sbuf be changed
|
Méthode | Description | |
---|---|---|
FromSQL2Chars ( string sql ) : char[] | ||
NextTokenInternal ( ) : MySqlToken | ||
ScanIdentifierFromNumber ( int initOffset, int initSize ) : void |
NOTE:
|
public AddCacheToke ( MySqlToken token ) : void | ||
token | MySqlToken | must be a keyword |
Résultat | void |
public AppendStringContent ( StringBuilder sb ) : void | ||
sb | StringBuilder | |
Résultat | void |
protected Err ( string msg ) : |
||
msg | string | |
Résultat |
public GetStringValueUppercase ( ) : string | ||
Résultat | string |
protected PutChar ( char ch, int index ) : void | ||
ch | char | |
index | int | |
Résultat | void |
protected ScanBitField ( bool quoteMode ) : void | ||
quoteMode | bool |
/// if false: first 0b has been skipped; if
/// true: first b' has been skipped
/// |
Résultat | void |
protected ScanChar ( int skip ) : char | ||
skip | int |
/// if 1, then equals to
/// |
Résultat | char |
protected ScanHexaDecimal ( bool quoteMode ) : void | ||
quoteMode | bool |
/// if false: first 0x has been skipped; if
/// true: first x' has been skipped
/// |
Résultat | void |
protected ScanIdentifierWithAccent ( ) : void | ||
Résultat | void |
public static SetCStyleCommentVersion ( int version ) : int | ||
version | int | |
Résultat | int |
protected UpdateStringValue ( char src, int srcOffset, int len ) : void | ||
src | char | |
srcOffset | int | |
len | int | |
Résultat | void |