Property | Type | Description | |
---|---|---|---|
ch | char | ||
curIndex | int | ||
eofIndex | int | ||
inCStyleComment | bool | ||
inCStyleCommentIgnore | bool | ||
offsetCache | int | ||
sbuf | char[] | ||
sbufRef | ThreadLocal |
||
sizeCache | int | ||
sql | char[] |
Method | 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 |
Method | 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
|
Method | 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 |
return | void |
public AppendStringContent ( StringBuilder sb ) : void | ||
sb | StringBuilder | |
return | void |
protected Err ( string msg ) : |
||
msg | string | |
return |
protected PutChar ( char ch, int index ) : void | ||
ch | char | |
index | int | |
return | void |
protected ScanBitField ( bool quoteMode ) : void | ||
quoteMode | bool |
/// if false: first 0b has been skipped; if
/// true: first b' has been skipped
/// |
return | void |
protected ScanChar ( int skip ) : char | ||
skip | int |
/// if 1, then equals to
/// |
return | char |
protected ScanHexaDecimal ( bool quoteMode ) : void | ||
quoteMode | bool |
/// if false: first 0x has been skipped; if
/// true: first x' has been skipped
/// |
return | void |
protected ScanIdentifierWithAccent ( ) : void | ||
return | void |
public static SetCStyleCommentVersion ( int version ) : int | ||
version | int | |
return | int |
protected UpdateStringValue ( char src, int srcOffset, int len ) : void | ||
src | char | |
srcOffset | int | |
len | int | |
return | void |