Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
    const ALL = 57365
    
      View Source
      
  
    const AND = 57421
    
      View Source
      
  
    const AS = 57368
    
      View Source
      
  
    const ASC = 57370
    
      View Source
      
  
    const ASSIGNMENT = 57437
    
      View Source
      
  
    const AT_AT_ID = 57400
    
      View Source
      
  
    const AT_ID = 57399
    
      View Source
      
  
    const BETWEEN = 57423
    
      View Source
      
  
    const BINARY = 57444
    
      View Source
      
  
    const BIT_LITERAL = 57408
    
      View Source
      
  
    const BY = 57359
    
      View Source
      
  
    const CASE = 57424
    
      View Source
      
  
    const CHARSET = 57415
    
      View Source
      
  
    const COLLATE = 57443
    
      View Source
      
  
    const COMMENT = 57404
    
      View Source
      
  
    const COMMENT_KEYWORD = 57405
    
      View Source
      
  
    const CROSS = 57390
    
      View Source
      
  
    const DEFAULT = 57374
    
      View Source
      
  
    const DELETE = 57353
    
      View Source
      
  
    const DESC = 57371
    
      View Source
      
  
    const DISTINCT = 57366
    
      View Source
      
  
    const DISTINCTROW = 57367
    
      View Source
      
  
    const DIV = 57440
    
      View Source
      
  
    const DUPLICATE = 57373
    
      View Source
      
  
    const ELSE = 57427
    
      View Source
      
  
    const EMPTY = 57347
    
      View Source
      
  
    const END = 57428
    
      View Source
      
  
    const EXISTS = 57369
    
      View Source
      
  
    const FALSE = 57413
    
      View Source
      
  
    const FLOAT = 57409
    
      View Source
      
  
    const FOR = 57362
    
      View Source
      
  
    const FORCE = 57393
    
      View Source
      
  
    const FROM = 57354
    
      View Source
      
  
    const GE = 57430
    
      View Source
      
  
    const GROUP = 57356
    
      View Source
      
  
    const HAVING = 57357
    
      View Source
      
  
    const HEX = 57407
    
      View Source
      
  
    const HEXNUM = 57410
    
      View Source
      
  
    const ID = 57398
    
      View Source
      
  
    const IN = 57436
    
      View Source
      
  
    const INNER = 57388
    
      View Source
      
  
    const INSERT = 57351
    
      View Source
      
  
    const INTEGRAL = 57406
    
      View Source
      
  
    const INTERVAL = 57446
    
      View Source
      
  
    const INTO = 57372
    
      View Source
      
  
    const IS = 57433
    
      View Source
      
  
    const JOIN = 57384
    
      View Source
      
  
    const KEY = 57417
    
      View Source
      
  
    const KEYS = 57376
    
      View Source
      
  
    const LE = 57429
    
      View Source
      
  
    const LEFT = 57386
    
      View Source
      
  
    const LEX_ERROR = 57346
    
      View Source
      
  
    const LIKE = 57434
    
      View Source
      
  
    const LIMIT = 57360
    
      View Source
      
  
    const LIST_ARG = 57403
    
      View Source
      
  
    const LOCK = 57375
    
      View Source
      
  
    const LOWER_THAN_CHARSET = 57414
    
      View Source
      
  
    const LOWER_THAN_SET = 57363
    
      View Source
      
  
    const LOWER_THAN_STRING = 57397
    
      View Source
      
  
    const MOD = 57441
    
      View Source
      
  
    const MODE = 57381
    
      View Source
      
  
    const NATURAL = 57391
    
      View Source
      
  
    const NE = 57431
    
      View Source
      
  
    const NEXT = 57378
    
      View Source
      
  
    const NOT = 57422
    
      View Source
      
  
    const NULL = 57411
    
      View Source
      
  
    const NULL_SAFE_EQUAL = 57432
    
      View Source
      
  
    const OFFSET = 57361
    
      View Source
      
  
    const ON = 57394
    
      View Source
      
  
    const OR = 57418
    
      View Source
      
  
    const ORDER = 57358
    
      View Source
      
  
    const OUTER = 57389
    
      View Source
      
  
    const PIPE_CONCAT = 57419
    
      View Source
      
  
    const REGEXP = 57435
    
      View Source
      
  
    const RIGHT = 57387
    
      View Source
      
  
    const SELECT = 57349
    
      View Source
      
  
    const SET = 57364
    
      View Source
      
  
    const SHARE = 57380
    
      View Source
      
  
    const SHIFT_LEFT = 57438
    
      View Source
      
  
    const SHIFT_RIGHT = 57439
    
      View Source
      
  
    const SQL_CACHE = 57383
    
      View Source
      
  
    const SQL_NO_CACHE = 57382
    
      View Source
      
  
    const STRAIGHT_JOIN = 57385
    
      View Source
      
  
    const STREAM = 57350
    
      View Source
      
  
    const STRING = 57401
    
      View Source
      
  
    const SUBQUERY_AS_EXPR = 57396
    
      View Source
      
  
    const THEN = 57426
    
      View Source
      
  
    const TRUE = 57412
    
      View Source
      
  
    const UNARY = 57442
    
      View Source
      
  
    const UNDERSCORE_BINARY = 57445
    
      View Source
      
  
    const UNION = 57348
    
      View Source
      
  
    const UNIQUE = 57416
    
      View Source
      
  
    const UPDATE = 57352
    
      View Source
      
  
    const USE = 57392
    
      View Source
      
  
    const USING = 57395
    
      View Source
      
  
    const VALUE = 57379
    
      View Source
      
  
    const VALUES = 57377
    
      View Source
      
  
    const VALUE_ARG = 57402
    
      View Source
      
  
    const WHEN = 57425
    
      View Source
      
  
    const WHERE = 57355
    
      View Source
      
  
const XOR = 57420
    Variables ¶
This section is empty.
Functions ¶
func ExtractMysqlComment ¶ added in v0.6.0
ExtractMysqlComment extracts the version and SQL from a comment-only query such as /*!50708 sql here */
Types ¶
type Lexer ¶
type Lexer struct {
	// contains filtered or unexported fields
}
    func (*Lexer) AppendStmt ¶
type PositionedErr ¶ added in v0.6.0
PositionedErr holds context related to parser errros
func (PositionedErr) Error ¶ added in v0.6.0
func (p PositionedErr) Error() string
 Click to show internal directories. 
   Click to hide internal directories.