MCPcopy Create free account
hub / github.com/donatj/sqlread / createTableExtra

Function createTableExtra

states.go:275–298  ·  view source on GitHub ↗
(l *lexer)

Source from the content-addressed store, hash-verified

273}
274
275func createTableExtra(l *lexer) state {
276 l.start = l.pos
277 for {
278 c := l.next()
279
280 if l.hasPrefix("COMMENT=") {
281 l.pos += 8
282 if !eatString(l) {
283 l.emit(TIllegal)
284 return nil
285 }
286 }
287
288 if c == semi {
289 l.rewind()
290 l.emit(TcreateTableExtraDetail)
291
292 l.start = l.pos
293 l.next()
294 l.emit(TSemi)
295 return StartState
296 }
297 }
298}
299
300func createTableParamTypeState(l *lexer) state {
301 l.accept(whitespace)

Callers

nothing calls this directly

Calls 5

eatStringFunction · 0.85
nextMethod · 0.80
hasPrefixMethod · 0.80
emitMethod · 0.80
rewindMethod · 0.80

Tested by

no test coverage detected