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

Function createTableParamState

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

Source from the content-addressed store, hash-verified

238}
239
240func createTableParamState(l *lexer) state {
241 l.accept(whitespace)
242
243 if l.hasPrefix("PRIMARY KEY ") || l.hasPrefix("KEY ") || l.hasPrefix("CONSTRAINT ") || l.hasPrefix("UNIQUE KEY") || l.hasPrefix(")") {
244 return createTableDetailState
245 }
246
247 return identifierStateBuilder(createTableParamTypeState)
248}
249
250func createTableDetailState(l *lexer) state {
251 l.start = l.pos

Callers

nothing calls this directly

Calls 3

identifierStateBuilderFunction · 0.85
acceptMethod · 0.80
hasPrefixMethod · 0.80

Tested by

no test coverage detected